Changeset 10dc7491 for src/tests/GccExtensions.c
- Timestamp:
- Jun 22, 2016, 4:35:32 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 8b52686
- Parents:
- 6bc4734
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/GccExtensions.c
r6bc4734 r10dc7491 1 int main(int argc, char const *argv[]) 2 3 4 1 int main(int argc, char const *argv[]) { 2 asm( "nop" ); 3 __asm( "nop" ); 4 __asm__( "nop" ); 5 5 6 7 6 __complex__ c1; 7 _Complex c2; 8 8 9 10 11 9 const int i1; 10 __const int i2; 11 __const__ int i3; 12 12 13 __extension__ const int ex; 13 __extension__ const int ex; 14 struct S { 15 __extension__ int a, b, c; 16 }; 17 int i = __extension__ 3; 18 __extension__ int a, b, c; 19 __extension__ a, __extension__ b, __extension__ c; 20 __extension__ a = __extension__ b + __extension__ c; 21 __extension__ a = __extension__ ( __extension__ b + __extension__ c ); 14 22 15 __inline int f1(); 16 __inline__ int f2(); 23 __inline int f1() {} 24 __inline__ int f2() {} 17 25 18 19 26 __signed s1; 27 __signed s2; 20 28 21 __otypeof(s1) t1;22 __otypeof__(s1) t2;29 __typeof(s1) t1; 30 __typeof__(s1) t2; 23 31 24 25 32 __volatile int v1; 33 __volatile__ int v2; 26 34 27 28 29 30 31 32 35 __attribute__(()) int a1; 36 const __attribute(()) int a2; 37 const static __attribute(()) int a3; 38 const static int __attribute(()) a4; 39 const static int a5 __attribute(()); 40 const static int a6, __attribute(()) a7; 33 41 34 35 36 // 37 // 42 int * __attribute(()) p1; 43 int (* __attribute(()) p2); 44 // int (__attribute(()) (p3)); 45 // int ( __attribute(()) (* __attribute(()) p4)); 38 46 39 40 41 42 47 struct __attribute(()) s1; 48 struct __attribute(()) s2 { int i; }; 49 struct __attribute(()) s3 { int i; } x1, __attribute(()) y1; 50 struct __attribute(()) s4 { int i; } x2, y2 __attribute(()); 43 51 44 45 46 47 // 52 int m1 [10] __attribute(()); 53 int m2 [10][10] __attribute(()); 54 int __attribute(()) m3 [10][10]; 55 // int ( __attribute(()) m4 [10] )[10]; 48 56 49 57 return 0;
Note: See TracChangeset
for help on using the changeset viewer.