Changeset 4a7d895 for src/tests/gccExtensions.c
- Timestamp:
- Aug 20, 2016, 5:33:07 AM (9 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:
- 80722d0
- Parents:
- 7b1bfc5 (diff), 2037f82 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/gccExtensions.c
r7b1bfc5 r4a7d895 1 1 // 2 // Cforall Version 1.0.0 Copyright (C) 201 5University of Waterloo2 // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo 3 3 // 4 4 // The contents of this file are covered under the licence agreement in the … … 10 10 // Created On : Sun Aug 14 17:28:17 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Aug 15 12:44:35201613 // Update Count : 512 // 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" ); … … 22 24 23 25 static int y asm( "yy" ); 24 // static * int z asm( "zz" ); // CFA declaration 26 #ifdef __CFA__ 27 static * int z asm( "zz" ); // CFA declaration 28 #endif // __CFA__ 25 29 26 30 int src; … … 52 56 : L1, L2 ); 53 57 58 // alternative type/qualifer names 59 54 60 __complex__ c1; 55 61 _Complex c2; … … 58 64 __const int i2; 59 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 60 82 61 83 __extension__ const int ex; … … 69 91 __extension__ a = __extension__ ( __extension__ b + __extension__ c ); 70 92 71 __inline int f1() {} 72 __inline__ int f2() {} 73 74 __signed s1; 75 __signed s2; 76 77 __typeof(s1) t1; 78 __typeof__(s1) t2; 79 80 __volatile int v1; 81 __volatile__ int v2; 93 // attributes 82 94 83 95 __attribute__(()) int a1;
Note:
See TracChangeset
for help on using the changeset viewer.