source: src/tests/GccExtensions.c @ f6ed7fd

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 f6ed7fd was 7ff30d07, checked in by Thierry Delisle <tdelisle@…>, 8 years ago

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

Conflicts:

Makefile.in
aclocal.m4
configure
src/Makefile.in
src/Tests/Context.c
src/driver/Makefile.in
src/examples/Makefile.in
src/examples/ctxts.c
src/examples/esskaykay.c
src/libcfa/Makefile.in

  • Property mode set to 100644
File size: 1.1 KB
Line 
1int main(int argc, char const *argv[])
2    asm( "nop" );
3    __asm( "nop" );
4    __asm__( "nop" );
5
6    __complex__ c1;
7    _Complex c2;
8
9    const int i1;
10    __const int i2;
11    __const__ int i3;
12
13    __extension__ const int ex;
14
15    __inline int f1();
16    __inline__ int f2();
17
18    __signed s1;
19    __signed s2;
20
21    __otypeof(s1) t1;
22    __otypeof__(s1) t2;
23
24    __volatile int v1;
25    __volatile__ int v2;
26
27    __attribute__(()) int a1;
28    const __attribute(()) int a2;
29    const static __attribute(()) int a3;
30    const static int __attribute(()) a4;
31    const static int a5 __attribute(());
32    const static int a6, __attribute(()) a7;
33
34    int * __attribute(()) p1;
35    int (* __attribute(()) p2);
36//    int (__attribute(()) (p3));
37//    int ( __attribute(()) (* __attribute(()) p4));
38
39    struct __attribute(()) s1;
40    struct __attribute(()) s2 { int i; };
41    struct __attribute(()) s3 { int i; } x1, __attribute(()) y1;
42    struct __attribute(()) s4 { int i; } x2, y2 __attribute(());
43
44    int m1 [10] __attribute(());
45    int m2 [10][10] __attribute(());
46    int __attribute(()) m3 [10][10];
47//    int ( __attribute(()) m4 [10] )[10];
48
49        return 0;
50}
Note: See TracBrowser for help on using the repository browser.