source: src/tests/GccExtensions.c@ 6cbc25a

ADT aaron-thesis arm-eh ast-experimental cleanup-dtors ctor deferred_resn demangler enum forall-pointer-decay gc_noraii jacob/cs343-translation jenkins-sandbox memory new-ast new-ast-unique-expr new-env no_list persistent-indexer pthread-emulation qualifiedEnum resolv-new with_gc
Last change on this file since 6cbc25a was 62edde5, checked in by Thierry Delisle <tdelisle@…>, 9 years ago

added new tests folder to replace existing one

  • 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 __typeof(s1) t1;
22 __typeof__(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.