ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newstringwith_gc
Last change
on this file since b1d6dd5 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:
740 bytes
|
Rev | Line | |
---|
[51b7345] | 1 | // Cforall extension |
---|
| 2 | |
---|
| 3 | // value |
---|
| 4 | |
---|
| 5 | int 0; |
---|
| 6 | const int 0; |
---|
| 7 | static const int 0; |
---|
| 8 | int 1; |
---|
| 9 | const int 1; |
---|
| 10 | static const int 1; |
---|
| 11 | int 0, 1; |
---|
| 12 | const int 0, 1; |
---|
[0b2961f] | 13 | int (0), (1); |
---|
| 14 | int ((0)), ((1)); |
---|
[51b7345] | 15 | static const int 0, 1; |
---|
| 16 | struct { int i; } 0; |
---|
| 17 | const struct { int i; } 1; |
---|
| 18 | static const struct { int i; } 1; |
---|
| 19 | |
---|
| 20 | // pointer |
---|
| 21 | |
---|
[0b2961f] | 22 | int *0, *1; |
---|
| 23 | int *(0), *(1); |
---|
| 24 | int (*0), (*1); |
---|
| 25 | int ((*0)), ((*1)); |
---|
| 26 | int * const (0), * const 1; |
---|
| 27 | int (* const 0), (* const 1); |
---|
| 28 | int ((* const 0)), ((* const 1)); |
---|
| 29 | struct { int i; } *0; |
---|
[51b7345] | 30 | |
---|
| 31 | // Cforall style |
---|
| 32 | |
---|
| 33 | * int x, 0; |
---|
| 34 | const * int x, 0; |
---|
| 35 | static const * int x, 0; |
---|
| 36 | * struct { int i; } 0; |
---|
| 37 | const * struct { int i; } 0; |
---|
| 38 | static const * struct { int i; } 0; |
---|
| 39 | static * int x, 0; |
---|
| 40 | static const * int x, 0; |
---|
| 41 | const * * int x, 0; |
---|
[0b2961f] | 42 | |
---|
| 43 | int main() { |
---|
| 44 | int 1, * 0; |
---|
| 45 | * int x, 0; |
---|
| 46 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.