source: src/Tests/Constant0-1.c @ 4c82a3c

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 4c82a3c 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
Line 
1// Cforall extension
2
3// value
4
5int 0;
6const int 0;
7static const int 0;
8int 1;
9const int 1;
10static const int 1;
11int 0, 1;
12const int 0, 1;
13int (0), (1);
14int ((0)), ((1));
15static const int 0, 1;
16struct { int i; } 0;
17const struct { int i; } 1;
18static const struct { int i; } 1;
19
20// pointer
21
22int *0, *1;
23int *(0), *(1);
24int (*0), (*1);
25int ((*0)), ((*1));
26int * const (0), * const 1;
27int (* const 0), (* const 1);
28int ((* const 0)), ((* const 1));
29struct { int i; } *0;
30
31// Cforall style
32
33* int x, 0;
34const * int x, 0;
35static const * int x, 0;
36* struct { int i; } 0;
37const * struct { int i; } 0;
38static const * struct { int i; } 0;
39static * int x, 0;
40static const * int x, 0;
41const * * int x, 0;
42
43int main() {
44    int 1, * 0;
45    * int x, 0;
46}
Note: See TracBrowser for help on using the repository browser.