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 a08ba92 was
51b7345,
checked in by Peter A. Buhr <pabuhr@…>, 10 years ago
|
initial commit
|
-
Property mode set to
100644
|
File size:
945 bytes
|
Rev | Line | |
---|
[51b7345] | 1 | // Cforall extension |
---|
| 2 | |
---|
| 3 | int fred() { |
---|
| 4 | |
---|
| 5 | // value |
---|
| 6 | { |
---|
| 7 | int 0; |
---|
| 8 | const int 0; |
---|
| 9 | int 1; |
---|
| 10 | const int 1; |
---|
| 11 | } |
---|
| 12 | static const int 0; |
---|
| 13 | static const int 1; |
---|
| 14 | { |
---|
| 15 | int 0, 1; |
---|
| 16 | const int 0, 1; |
---|
| 17 | } |
---|
| 18 | { |
---|
| 19 | int (0), (1); |
---|
| 20 | } |
---|
| 21 | { |
---|
| 22 | int ((0)), ((1)); |
---|
| 23 | } |
---|
| 24 | { |
---|
| 25 | static const int 0, 1; |
---|
| 26 | } |
---|
| 27 | { |
---|
| 28 | struct { int i; } 0; |
---|
| 29 | const struct { int i; } 1; |
---|
| 30 | } |
---|
| 31 | static const struct { int i; } 1; |
---|
| 32 | |
---|
| 33 | // pointer |
---|
| 34 | |
---|
| 35 | { |
---|
| 36 | int *0, *1; |
---|
| 37 | } |
---|
| 38 | { |
---|
| 39 | int *(0), *(1); |
---|
| 40 | } |
---|
| 41 | { |
---|
| 42 | int (*0), (*1); |
---|
| 43 | } |
---|
| 44 | { |
---|
| 45 | int ((*0)), ((*1)); |
---|
| 46 | } |
---|
| 47 | { |
---|
| 48 | int * const (0), * const 1; |
---|
| 49 | } |
---|
| 50 | { |
---|
| 51 | int (* const 0), (* const 1); |
---|
| 52 | } |
---|
| 53 | { |
---|
| 54 | int ((* const 0)), ((* const 1)); |
---|
| 55 | } |
---|
| 56 | struct { int i; } *0; |
---|
| 57 | |
---|
| 58 | // Cforall style |
---|
| 59 | |
---|
| 60 | { |
---|
| 61 | * int x, 0; |
---|
| 62 | const * int x, 0; |
---|
| 63 | } |
---|
| 64 | static const * int x, 0; |
---|
| 65 | * struct { int i; } 0; |
---|
| 66 | const * struct { int i; } 0; |
---|
| 67 | static const * struct { int i; } 0; |
---|
| 68 | { |
---|
| 69 | static * int x, 0; |
---|
| 70 | static const * int x, 0; |
---|
| 71 | } |
---|
| 72 | const * * int x, 0; |
---|
| 73 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.