Changeset 926af74 for src/tests/gccExtensions.c
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.