ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change
on this file since b617e4b was
b1d6dd5,
checked in by Peter A. Buhr <pabuhr@…>, 9 years ago
|
fix parsing error for EOF message, change cfa-ccp -x flag to -v, regression testing third attempt: consolidate example programs
|
-
Property mode set to
100644
|
File size:
792 bytes
|
Line | |
---|
1 | int fred() { |
---|
2 | struct s { int i; } *p; |
---|
3 | int i; |
---|
4 | |
---|
5 | // order of evaluation (GCC is different) |
---|
6 | /* |
---|
7 | i = sizeof( (int) {3} ); |
---|
8 | i = sizeof (int) {3}; |
---|
9 | */ |
---|
10 | // operators |
---|
11 | |
---|
12 | ! i; |
---|
13 | ~i; |
---|
14 | +i; |
---|
15 | -i; |
---|
16 | *p; |
---|
17 | ++p; |
---|
18 | --p; |
---|
19 | p++; |
---|
20 | p--; |
---|
21 | |
---|
22 | i+i; |
---|
23 | i-i; |
---|
24 | i*i; |
---|
25 | |
---|
26 | i/i; |
---|
27 | i%i; |
---|
28 | i^i; |
---|
29 | i&i; |
---|
30 | i|i; |
---|
31 | i<i; |
---|
32 | i>i; |
---|
33 | i=i; |
---|
34 | |
---|
35 | i==i; |
---|
36 | i!=i; |
---|
37 | i<<i; |
---|
38 | i>>i; |
---|
39 | i<=i; |
---|
40 | i>=i; |
---|
41 | i&&i; |
---|
42 | i||i; |
---|
43 | p->i; |
---|
44 | i+=i; |
---|
45 | i-=i; |
---|
46 | i*=i; |
---|
47 | i/=i; |
---|
48 | i%=i; |
---|
49 | i&=i; |
---|
50 | i|=i; |
---|
51 | i^=i; |
---|
52 | i<<=i; |
---|
53 | i>>=i; |
---|
54 | |
---|
55 | i?i:i; |
---|
56 | |
---|
57 | // cast |
---|
58 | /* |
---|
59 | double d; |
---|
60 | int *ip; |
---|
61 | (int *) i; |
---|
62 | (* int) i; |
---|
63 | ([char, int *])[d, d]; |
---|
64 | [i,ip,ip] = ([int, * int, int *])[1,(void *)2,(void *)3]; |
---|
65 | [i,ip,ip] = ([int, * int, int *])([1,(void *)2,(void *)3]); |
---|
66 | */ |
---|
67 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.