- Timestamp:
- Aug 17, 2016, 9:31:28 AM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, 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:
- 3b8e52c, 6643e72
- Parents:
- 5ead9f9
- Location:
- src/tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/.expect/64/gccExtensions.txt
r5ead9f9 r926af74 11 11 asm ( "nop" : : : ); 12 12 static int __y__i_2; 13 static int *__z__Pi_2; 13 14 int __src__i_2; 14 15 int __dst__i_2; … … 23 24 const int __i2__Ci_2; 24 25 const int __i3__Ci_2; 26 inline int __f1__Fi___2(){ 27 } 28 inline int __f2__Fi___2(){ 29 } 30 int __s1__i_2; 31 int __s2__i_2; 32 volatile int __v1__Vi_2; 33 volatile int __v2__Vi_2; 34 int __t1___2; 35 int __t2___2; 25 36 __extension__ const int __ex__Ci_2; 26 37 struct S { … … 73 84 ((void)(__extension__ __a__i_2=(__extension__ __b__i_2+__extension__ __c__i_2))); 74 85 ((void)(__extension__ __a__i_2=__extension__ (__extension__ __b__i_2+__extension__ __c__i_2))); 75 inline int __f1__Fi___2(){76 }77 inline int __f2__Fi___2(){78 }79 int __s1__i_2;80 int __s2__i_2;81 int __t1___2;82 int __t2___2;83 volatile int __v1__Vi_2;84 volatile int __v2__Vi_2;85 86 int __a1__i_2; 86 87 const int __a2__Ci_2; -
src/tests/gccExtensions.c
r5ead9f9 r926af74 10 10 // Created On : Sun Aug 14 17:28:17 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Aug 17 0 8:34:57201613 // Update Count : 712 // Last Modified On : Wed Aug 17 09:26:50 2016 13 // Update Count : 10 14 14 // 15 15 … … 17 17 18 18 int main(int argc, char const *argv[]) { 19 // asm extensions 20 19 21 asm( "nop" ); 20 22 __asm( "nop" ); … … 54 56 : L1, L2 ); 55 57 58 // alternative type/qualifer names 59 56 60 __complex__ c1; 57 61 _Complex c2; … … 60 64 __const int i2; 61 65 __const__ int i3; 66 67 __inline int f1() {} 68 __inline__ int f2() {} 69 70 __signed s1; 71 __signed s2; 72 73 __volatile int v1; 74 __volatile__ int v2; 75 76 // symbol table attributes 77 78 __typeof(s1) t1; 79 __typeof__(s1) t2; 80 81 // strange extension qualifier 62 82 63 83 __extension__ const int ex; … … 71 91 __extension__ a = __extension__ ( __extension__ b + __extension__ c ); 72 92 73 __inline int f1() {} 74 __inline__ int f2() {} 75 76 __signed s1; 77 __signed s2; 78 79 __typeof(s1) t1; 80 __typeof__(s1) t2; 81 82 __volatile int v1; 83 __volatile__ int v2; 93 // attributes 84 94 85 95 __attribute__(()) int a1;
Note: See TracChangeset
for help on using the changeset viewer.