cfad47cfa3/t3compiler/tads3/test/data/switch_warn.t
| 4b825dc642cb6eb9a060e54bf8d69288fbee4904 | cfad47cfa334b206c65f22086bcc5d63e6f70944 | ||
|---|---|---|---|
1 | #include "tads.h" | ||
2 | |||
3 | main(args) | ||
4 | { | ||
5 | "<<func(args)>>\n"; | ||
6 | } | ||
7 | |||
8 | func(args) | ||
9 | { | ||
10 | switch(args.length()) | ||
11 | { | ||
12 | case 1: | ||
13 | return 'one'; | ||
14 | |||
15 | case 2: | ||
16 | return 'two'; | ||
17 | |||
18 | case 3: | ||
19 | return 'three'; | ||
20 | } | ||
21 | |||
22 | return 'four or more'; | ||
23 | } |
Download diff