- 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. - Location:
- src/tests
- Files:
-
- 2 added
- 1 deleted
- 13 edited
-
.expect/32/declarationSpecifier.txt (added)
-
.expect/32/gccExtensions.txt (modified) (4 diffs)
-
.expect/64/declarationSpecifier.txt (added)
-
.expect/64/gccExtensions.txt (modified) (3 diffs)
-
.expect/declarationErrors.txt (modified) (1 diff)
-
.expect/declarationSpecifier.txt (deleted)
-
Makefile.am (modified) (1 diff)
-
Makefile.in (modified) (1 diff)
-
declarationErrors.c (modified) (2 diffs)
-
declarationSpecifier.c (modified) (6 diffs)
-
dtor-early-exit.c (modified) (2 diffs)
-
functions.c (modified) (2 diffs)
-
gccExtensions.c (modified) (7 diffs)
-
identFuncDeclarator.c (modified) (2 diffs)
-
identParamDeclarator.c (modified) (2 diffs)
-
variableDeclarator.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/tests/.expect/32/gccExtensions.txt
r7b1bfc5 r4a7d895 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; … … 17 18 asm volatile ( "mov %1, %0\n\tadd $1, %0" : "=r" ( __dst__i_2 ) : "r" ( __src__i_2 ) : ); 18 19 asm ( "mov %1, %0\n\tadd $1, %0" : "=r" ( __dst__i_2 ), "=r" ( __src__i_2 ) : [ __src__i_2 ] "r" ( __dst__i_2 ) : "r0" ); 20 L2: L1: asm goto ( "frob %%r5, %1; jc %l[L1]; mov (%2), %%r5" : : "r" ( __src__i_2 ), "r" ( (&__dst__i_2) ) : "r5", "memory" : L1, L2 ); 19 21 double _Complex __c1__Xd_2; 20 22 double _Complex __c2__Xd_2; … … 22 24 const int __i2__Ci_2; 23 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; 24 36 __extension__ const int __ex__Ci_2; 25 37 struct S { … … 72 84 ((void)(__extension__ __a__i_2=(__extension__ __b__i_2+__extension__ __c__i_2))); 73 85 ((void)(__extension__ __a__i_2=__extension__ (__extension__ __b__i_2+__extension__ __c__i_2))); 74 inline int __f1__Fi___2(){75 }76 inline int __f2__Fi___2(){77 }78 int __s1__i_2;79 int __s2__i_2;80 int __t1___2;81 int __t2___2;82 volatile int __v1__Vi_2;83 volatile int __v2__Vi_2;84 86 int __a1__i_2; 85 87 const int __a2__Ci_2; -
src/tests/.expect/64/gccExtensions.txt
r7b1bfc5 r4a7d895 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/.expect/declarationErrors.txt
r7b1bfc5 r4a7d895 1 1 CFA Version 1.0.0 (debug) 2 Error: invalid combination of storage classes in declaration of x9: static staticvolatile const short int2 Error: invalid combination of storage classes in declaration of x9: static volatile const short int 3 3 4 Error: invalid combination of storage classes in declaration of x18: static staticconst volatile instance of struct __anonymous04 Error: invalid combination of storage classes in declaration of x18: static const volatile instance of struct __anonymous0 5 5 with members 6 i: int7 6 with body 8 7 9 8 10 Error: invalid combination of storage classes in declaration of x19: static staticconst volatile volatile instance of struct __anonymous19 Error: invalid combination of storage classes in declaration of x19: static const volatile volatile instance of struct __anonymous1 11 10 with members 12 i: int13 11 with body 14 12 15 13 16 Error: invalid combination of storage classes in declaration of x28: static staticvolatile const instance of type Int14 Error: invalid combination of storage classes in declaration of x28: static volatile const instance of type Int 17 15 18 16 make: *** [declarationErrors] Error 1 -
src/tests/Makefile.am
r7b1bfc5 r4a7d895 53 53 ${CC} ${CFLAGS} -DERR2 ${<} -o ${@} 54 54 55 declarationSpecifier: declarationSpecifier.c 56 ${CC} ${CFALGS} -CFA -XCFA -p ${<} -o ${@} 57 55 58 gccExtensions : gccExtensions.c 56 59 ${CC} ${CFLAGS} -CFA -XCFA -p ${<} -o ${@} -
src/tests/Makefile.in
r7b1bfc5 r4a7d895 661 661 ${CC} ${CFLAGS} -DERR2 ${<} -o ${@} 662 662 663 declarationSpecifier: declarationSpecifier.c 664 ${CC} ${CFALGS} -CFA -XCFA -p ${<} -o ${@} 665 663 666 gccExtensions : gccExtensions.c 664 667 ${CC} ${CFLAGS} -CFA -XCFA -p ${<} -o ${@} -
src/tests/declarationErrors.c
r7b1bfc5 r4a7d895 1 static short int volatile static const x9; // duplicate static 2 struct { int i; } const static volatile static x18; // duplicate static 1 // 2 // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo 3 // 4 // The contents of this file are covered under the licence agreement in the 5 // file "LICENCE" distributed with Cforall. 6 // 7 // declarationErrors.c -- 8 // 9 // Author : Peter A. Buhr 10 // Created On : Wed Aug 17 08:23:43 2016 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Aug 17 08:27:15 2016 13 // Update Count : 2 14 // 15 16 const short static int volatile x4; 17 const static volatile short int x4; 18 static short int volatile static const x9; // duplicate static 19 struct { int i; } const static volatile static x18; // duplicate static 3 20 struct { int i; } const static volatile static volatile x19; // duplicate static & volatile 4 21 typedef int Int; 5 static Int volatile static const x28; // duplicate static 22 static Int volatile static const x28; // duplicate static 23 24 const static inline const volatile int f01(); // duplicate const 25 volatile inline const volatile static int f02(); // duplicate volatile 26 const inline const volatile int static f03(); // duplicate const 27 volatile inline static const volatile int f04(); // duplicate volatile 28 const static const inline volatile int f05(); // duplicate const 29 volatile static const volatile inline int f06(); // duplicate volatile 30 const static const volatile int inline f07(); // duplicate const 31 volatile static const int inline volatile f08(); // duplicate volatile 6 32 7 33 //Dummy main … … 10 36 return 0; 11 37 } 38 39 // Local Variables: // 40 // tab-width: 4 // 41 // compile-command: "cfa declarationErrors.c" // 42 // End: // -
src/tests/declarationSpecifier.c
r7b1bfc5 r4a7d895 1 // 2 // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo 3 // 4 // The contents of this file are covered under the licence agreement in the 5 // file "LICENCE" distributed with Cforall. 6 // 7 // declarationSpecifier.c -- 8 // 9 // Author : Peter A. Buhr 10 // Created On : Wed Aug 17 08:21:04 2016 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Aug 17 08:24:33 2016 13 // Update Count : 2 14 // 15 1 16 typedef short int Int; 2 3 17 4 18 const short int volatile x1; 5 19 static const short int volatile x2; 6 20 const static short int volatile x3; 7 const short static int volatile x4;8 21 const static volatile short int x4; 9 22 const short int static volatile x5; … … 11 24 const short volatile int static x7; 12 25 short int volatile static const x8; 13 static short int volatile static const x9; // duplicate static14 26 15 27 const volatile struct { int i; } x10; … … 21 33 struct { int i; } const static volatile x16; 22 34 struct { int i; } const volatile static x17; 23 struct { int i; } const static volatile static x18; // duplicate static24 struct { int i; } const static volatile static volatile x19; // duplicate static & volatile25 35 26 36 const Int volatile x20; … … 32 42 const volatile Int static x26; 33 43 Int volatile static const x27; 34 static Int volatile static const x28; // duplicate static35 44 36 45 const volatile struct { Int i; } x29; … … 42 51 struct { Int i; } const static volatile x35; 43 52 struct { Int i; } const volatile static x36; 44 45 46 const static inline const volatile int f01(); // duplicate const47 volatile inline const volatile static int f02(); // duplicate volatile48 const inline const volatile int static f03(); // duplicate const49 volatile inline static const volatile int f04(); // duplicate volatile50 const static const inline volatile int f05(); // duplicate const51 volatile static const volatile inline int f06(); // duplicate volatile52 const static const volatile int inline f07(); // duplicate const53 volatile static const int inline volatile f08(); // duplicate volatile54 53 55 54 static inline const volatile int f11(); … … 94 93 return 0; 95 94 } 95 96 // Local Variables: // 97 // tab-width: 4 // 98 // compile-command: "cfa declarationSpecifier.c" // 99 // End: // -
src/tests/dtor-early-exit.c
r7b1bfc5 r4a7d895 1 // 2 // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo 3 // 4 // The contents of this file are covered under the licence agreement in the 5 // file "LICENCE" distributed with Cforall. 6 // 7 // dtor-early-exit.c -- 8 // 9 // Author : Rob Schluntz 10 // Created On : Wed Aug 17 08:26:25 2016 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Aug 17 08:29:37 2016 13 // Update Count : 2 14 // 15 1 16 #include <fstream> 2 17 #include <stdlib> … … 215 230 h(); 216 231 } 232 233 // Local Variables: // 234 // tab-width: 4 // 235 // compile-command: "cfa dtor-early-exit" // 236 // End: // -
src/tests/functions.c
r7b1bfc5 r4a7d895 1 // 2 // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo 3 // 4 // The contents of this file are covered under the licence agreement in the 5 // file "LICENCE" distributed with Cforall. 6 // 7 // functions.c -- 8 // 9 // Author : Peter A. Buhr 10 // Created On : Wed Aug 17 08:39:58 2016 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Aug 17 08:40:52 2016 13 // Update Count : 1 14 // 15 1 16 // ANSI function definitions 2 17 … … 165 180 // Local Variables: // 166 181 // tab-width: 4 // 182 // compile-command: "cfa functions.c" // 167 183 // End: // -
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; -
src/tests/identFuncDeclarator.c
r7b1bfc5 r4a7d895 1 // 2 // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo 3 // 4 // The contents of this file are covered under the licence agreement in the 5 // file "LICENCE" distributed with Cforall. 6 // 7 // identFuncDeclarator.c -- 8 // 9 // Author : Peter A. Buhr 10 // Created On : Wed Aug 17 08:36:34 2016 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Aug 17 08:37:06 2016 13 // Update Count : 1 14 // 15 1 16 int main() { 2 17 int f1; … … 97 112 int (* const(* const f81)(int))(); 98 113 } 114 115 // Local Variables: // 116 // tab-width: 4 // 117 // compile-command: "cfa identFuncDeclarator.c" // 118 // End: // -
src/tests/identParamDeclarator.c
r7b1bfc5 r4a7d895 1 // 2 // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo 3 // 4 // The contents of this file are covered under the licence agreement in the 5 // file "LICENCE" distributed with Cforall. 6 // 7 // identParamDeclarator.c -- 8 // 9 // Author : Peter A. Buhr 10 // Created On : Wed Aug 17 08:37:56 2016 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Aug 17 08:38:42 2016 13 // Update Count : 1 14 // 15 1 16 int fred( 2 17 int f1, … … 147 162 return 0; 148 163 } 164 165 // Local Variables: // 166 // tab-width: 4 // 167 // compile-command: "cfa identParamDeclarator.c" // 168 // End: // -
src/tests/variableDeclarator.c
r7b1bfc5 r4a7d895 1 //Variable declarations test 1 // 2 // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo 3 // 4 // The contents of this file are covered under the licence agreement in the 5 // file "LICENCE" distributed with Cforall. 6 // 7 // variableDeclarator.c -- 8 // 9 // Author : Peter A. Buhr 10 // Created On : Wed Aug 17 08:41:42 2016 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Aug 17 08:42:21 2016 13 // Update Count : 1 14 // 15 16 // Variable declarations test 2 17 int f1; 3 18 int (f2); … … 164 179 return 0; 165 180 } 181 182 // Local Variables: // 183 // tab-width: 4 // 184 // compile-command: "cfa variableDeclarator.c" // 185 // End: //
Note:
See TracChangeset
for help on using the changeset viewer.