]> git.bts.cx Git - sun.git/blob - tests/test_1.sun
Initial commit
[sun.git] / tests / test_1.sun
1 struct basic_type {
2 //string a;
3 int b;
4 }
5
6 int a;
7 int b;
8
9 while (true) {
10 print();
11 sleep;
12 }
13
14 /* OperatorTypeNegative
15
16 sdlfkjlaskdfadsf
17
18
19
20 void main(int a, int b, int c) {
21 int a = 10;
22 //string fish = "hekkopo";
23 print();;;;;;
24
25 if (a) {
26 fish(this, out);
27 set();
28 }
29
30 int i;
31 for (i = 20; i <= 20; ++i) {
32 this();
33
34 sleep;
35 }
36
37 int z;
38 while (z>10) {
39 fish();
40 }
41
42 int x;
43 do {
44 egg();
45 } while (x < 100);
46
47
48 a = a + 1;
49 a = a - 1;
50 a = a * 1;
51 a = a / 1;
52
53 a+=1;
54 a-=1;
55 a*=1;
56 a/=1;
57
58 a = a && a;
59 a = a || a;
60 a = !a;
61
62 a = a & a;
63 a = a | a;
64 a = ~a;
65
66
67 }
68
69 */