cfad47cfa3/t3compiler/tads3/test/data/xxx.t
| 4b825dc642cb6eb9a060e54bf8d69288fbee4904 | cfad47cfa334b206c65f22086bcc5d63e6f70944 | ||
|---|---|---|---|
1 | main() | ||
2 | { | ||
3 | for (local i = 1 ; i < 10 ; ++i) | ||
4 | { | ||
5 | if (x == 1) | ||
6 | "Yes"; | ||
7 | else | ||
8 | "No"; | ||
9 | } | ||
10 | |||
11 | "That's about all!"; | ||
12 | x = 1; | ||
13 | } | ||
14 | |||
15 | preinit() | ||
16 | { | ||
17 | "This is a test!"; | ||
18 | asdf: | ||
19 | for (local i = 1 ; i < 10 ; ++i) | ||
20 | { | ||
21 | "That's all!"; | ||
22 | } | ||
23 | } | ||
24 | |||
25 | myobj: object | ||
26 | sdesc = "sdesc" | ||
27 | ldesc = "This is the ldesc | ||
28 | for the object. | ||
29 | That's about all!" | ||
30 | newdesc(a, b, c) | ||
31 | { | ||
32 | asfd: | ||
33 | asfd; | ||
34 | |||
35 | asdf: | ||
36 | def; | ||
37 | |||
38 | for (i = 1 ; i < 10 ; ++i) | ||
39 | { | ||
40 | "that's it!"; | ||
41 | } | ||
42 | } | ||
43 | name = 'foo' | ||
44 | mydesc() | ||
45 | { | ||
46 | "This is a test!"; | ||
47 | if (a == 1) | ||
48 | "That's all."; | ||
49 | } | ||
50 | ; | ||
51 |
Download diff