- Timestamp:
- Feb 6, 2017, 4:19:41 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- b4d65c7
- Parents:
- a362f97
- Location:
- src/tests
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/.expect/64/declarationSpecifier.txt
ra362f97 rc0aa336 1 __attribute__ ((__ malloc__,__nothrow__,__leaf__)) extern void *malloc(long unsigned int __size);1 __attribute__ ((__nothrow__,__leaf__,__malloc__)) extern void *malloc(long unsigned int __size); 2 2 __attribute__ ((__nothrow__,__leaf__)) extern void free(void *__ptr); 3 __attribute__ ((__no return__,__nothrow__,__leaf__)) extern void abort(void);4 __attribute__ ((__no nnull__(1),__nothrow__,__leaf__)) extern int atexit(void (*__func)(void));5 __attribute__ ((__no return__,__nothrow__,__leaf__)) extern void exit(int __status);3 __attribute__ ((__nothrow__,__leaf__,__noreturn__)) extern void abort(void); 4 __attribute__ ((__nothrow__,__leaf__,__nonnull__(1))) extern int atexit(void (*__func)(void)); 5 __attribute__ ((__nothrow__,__leaf__,__noreturn__)) extern void exit(int __status); 6 6 extern int printf(const char *__restrict __format, ...); 7 7 volatile const short __x1__CVs_1; … … 629 629 } 630 630 static inline int invoke_main(int argc, char* argv[], char* envp[]) { (void)argc; (void)argv; (void)envp; return __main__Fi_iPPCc__1(argc, argv); } 631 __attribute__ ((__ malloc__,__nothrow__,__leaf__)) extern void *malloc(long unsigned int __size);631 __attribute__ ((__nothrow__,__leaf__,__malloc__)) extern void *malloc(long unsigned int __size); 632 632 __attribute__ ((__nothrow__,__leaf__)) extern void free(void *__ptr); 633 __attribute__ ((__no return__,__nothrow__,__leaf__)) extern void abort(void);634 __attribute__ ((__no nnull__(1),__nothrow__,__leaf__)) extern int atexit(void (*__func)(void));635 __attribute__ ((__no return__,__nothrow__,__leaf__)) extern void exit(int __status);633 __attribute__ ((__nothrow__,__leaf__,__noreturn__)) extern void abort(void); 634 __attribute__ ((__nothrow__,__leaf__,__nonnull__(1))) extern int atexit(void (*__func)(void)); 635 __attribute__ ((__nothrow__,__leaf__,__noreturn__)) extern void exit(int __status); 636 636 extern int printf(const char *__restrict __format, ...); 637 637 static inline int invoke_main(int argc, char **argv, char **envp); -
src/tests/.expect/64/extension.txt
ra362f97 rc0aa336 1 __attribute__ ((__ malloc__,__nothrow__,__leaf__)) extern void *malloc(long unsigned int __size);1 __attribute__ ((__nothrow__,__leaf__,__malloc__)) extern void *malloc(long unsigned int __size); 2 2 __attribute__ ((__nothrow__,__leaf__)) extern void free(void *__ptr); 3 __attribute__ ((__no return__,__nothrow__,__leaf__)) extern void abort(void);4 __attribute__ ((__no nnull__(1),__nothrow__,__leaf__)) extern int atexit(void (*__func)(void));5 __attribute__ ((__no return__,__nothrow__,__leaf__)) extern void exit(int __status);3 __attribute__ ((__nothrow__,__leaf__,__noreturn__)) extern void abort(void); 4 __attribute__ ((__nothrow__,__leaf__,__nonnull__(1))) extern int atexit(void (*__func)(void)); 5 __attribute__ ((__nothrow__,__leaf__,__noreturn__)) extern void exit(int __status); 6 6 extern int printf(const char *__restrict __format, ...); 7 7 __extension__ int __a__i_1; … … 77 77 __B__C2eE_1, 78 78 }; 79 __extension__ int __f__Fi___1(); 80 __extension__ int i; 81 __extension__ int j; 79 82 __extension__ int __fred__Fi_i__1(int __p__i_1){ 80 83 int ___retval_fred__i_1; … … 83 86 __extension__ int __b__i_2; 84 87 __extension__ int __c__i_2; 88 __extension__ int *__x__Pi_2; 89 __extension__ int *__y__Pi_2; 90 __extension__ int *__z__Pi_2; 85 91 }; 86 92 int __i__i_2 = ((int )(__extension__ __a__i_1+__extension__ 3)); … … 94 100 ((void)((_tmp_cp_ret0=__extension__ __fred__Fi_i__1(3)) , _tmp_cp_ret0)); 95 101 ((void)((*((int *)(&_tmp_cp_ret0)))) /* ^?{} */); 102 __extension__ int __mary__Fi_i__2(int __p__i_2){ 103 int ___retval_mary__i_2; 104 } 96 105 ((void)__extension__ sizeof(3)); 97 106 ((void)__extension__ (((int )(3!=((int )0))) || ((int )(4!=((int )0))))); -
src/tests/.expect/64/gccExtensions.txt
ra362f97 rc0aa336 1 __attribute__ ((__ malloc__,__nothrow__,__leaf__)) extern void *malloc(long unsigned int __size);1 __attribute__ ((__nothrow__,__leaf__,__malloc__)) extern void *malloc(long unsigned int __size); 2 2 __attribute__ ((__nothrow__,__leaf__)) extern void free(void *__ptr); 3 __attribute__ ((__no return__,__nothrow__,__leaf__)) extern void abort(void);4 __attribute__ ((__no nnull__(1),__nothrow__,__leaf__)) extern int atexit(void (*__func)(void));5 __attribute__ ((__no return__,__nothrow__,__leaf__)) extern void exit(int __status);3 __attribute__ ((__nothrow__,__leaf__,__noreturn__)) extern void abort(void); 4 __attribute__ ((__nothrow__,__leaf__,__nonnull__(1))) extern int atexit(void (*__func)(void)); 5 __attribute__ ((__nothrow__,__leaf__,__noreturn__)) extern void exit(int __status); 6 6 extern int printf(const char *__restrict __format, ...); 7 7 extern int __x__i_1 asm ( "xx" ); … … 166 166 } 167 167 static inline int invoke_main(int argc, char* argv[], char* envp[]) { (void)argc; (void)argv; (void)envp; return __main__Fi_iPPCc__1(argc, argv); } 168 __attribute__ ((__ malloc__,__nothrow__,__leaf__)) extern void *malloc(long unsigned int __size);168 __attribute__ ((__nothrow__,__leaf__,__malloc__)) extern void *malloc(long unsigned int __size); 169 169 __attribute__ ((__nothrow__,__leaf__)) extern void free(void *__ptr); 170 __attribute__ ((__no return__,__nothrow__,__leaf__)) extern void abort(void);171 __attribute__ ((__no nnull__(1),__nothrow__,__leaf__)) extern int atexit(void (*__func)(void));172 __attribute__ ((__no return__,__nothrow__,__leaf__)) extern void exit(int __status);170 __attribute__ ((__nothrow__,__leaf__,__noreturn__)) extern void abort(void); 171 __attribute__ ((__nothrow__,__leaf__,__nonnull__(1))) extern int atexit(void (*__func)(void)); 172 __attribute__ ((__nothrow__,__leaf__,__noreturn__)) extern void exit(int __status); 173 173 extern int printf(const char *__restrict __format, ...); 174 174 static inline int invoke_main(int argc, char **argv, char **envp); -
src/tests/Makefile.am
ra362f97 rc0aa336 11 11 ## Created On : Sun May 31 09:08:15 2015 12 12 ## Last Modified By : Peter A. Buhr 13 ## Last Modified On : Mon Aug 15 12:24:54 201614 ## Update Count : 3913 ## Last Modified On : Mon Feb 6 16:10:43 2017 14 ## Update Count : 40 15 15 ############################################################################### 16 16 … … 65 65 ${CC} ${CFLAGS} -CFA -XCFA -p ${<} -o ${@} 66 66 67 attributes : attributes.c 68 ${CC} ${CFLAGS} -CFA -XCFA -p ${<} -o ${@} 69 67 70 memberCtors-ERR1: memberCtors.c 68 71 ${CC} ${CFLAGS} -DERR1 ${<} -o ${@} -
src/tests/Makefile.in
ra362f97 rc0aa336 686 686 ${CC} ${CFLAGS} -CFA -XCFA -p ${<} -o ${@} 687 687 688 attributes : attributes.c 689 ${CC} ${CFLAGS} -CFA -XCFA -p ${<} -o ${@} 690 688 691 memberCtors-ERR1: memberCtors.c 689 692 ${CC} ${CFLAGS} -DERR1 ${<} -o ${@} -
src/tests/extension.c
ra362f97 rc0aa336 7 7 // Created On : Mon Jul 4 20:42:43 2016 8 8 // Last Modified By : Peter A. Buhr 9 // Last Modified On : Mon Jul 4 23:31:22 201610 // Update Count : 39 // Last Modified On : Mon Feb 6 15:44:39 2017 10 // Update Count : 46 11 11 // 12 12 13 __extension__ int a, b, c;13 __extension__ __extension__ int a, b, c; 14 14 __extension__ struct S { 15 15 __extension__ int a, b, c; 16 16 }; 17 17 __extension__ union U { 18 18 __extension__ int a, b, c; 19 19 }; 20 20 __extension__ enum E { 21 21 R, G, B, 22 22 }; 23 23 __extension__ typedef int www; // typedefs are removed => no output 24 __extension__ __extension__ int f(); 25 //__extension__ __extension__ asm( "nop" ); 26 #ifdef __cforall 27 __extension__ __extension__ extern "C" { 28 int i, j; 29 } 30 #endif // __cforall 24 31 25 32 __extension__ int fred( int p ) { 26 __extension__ struct S { 27 __extension__ int a, b, c; 28 }; 29 int i = __extension__ a + __extension__ 3; 30 __extension__ 3; 31 __extension__ a; 32 __extension__ int a, b, c; 33 __extension__ struct S { 34 __extension__ int a, b, c; 35 #ifdef __cforall 36 __extension__ * int x, y, z; 37 #endif // __cforall 38 }; 39 int i = __extension__ a + __extension__ 3; 40 __extension__ 3; 41 __extension__ a; 42 __extension__ int a, b, c; 33 43 34 __extension__ a = __extension__ b + __extension__ c; 35 __extension__ fred( 3 ); 36 __extension__ sizeof( 3 ); 37 __extension__ (3 || 4); 38 __extension__ __alignof__( __extension__ a ); 39 __extension__ a || __extension__ b && __extension__ c; 40 __extension__ a > __extension__ b ? __extension__ c : __extension__ c; 41 __extension__ a = __extension__ ( __extension__ b + __extension__ c ); 42 __extension__ a, __extension__ b, __extension__ c; 44 __extension__ a = __extension__ b + __extension__ c; 45 __extension__ fred( 3 ); 46 __extension__ int mary( int p ) {} 47 __extension__ sizeof( 3 ); 48 __extension__ (3 || 4); 49 __extension__ __alignof__( __extension__ a ); 50 __extension__ a || __extension__ b && __extension__ c; 51 __extension__ a > __extension__ b ? __extension__ c : __extension__ c; 52 __extension__ a = __extension__ ( __extension__ b + __extension__ c ); 53 __extension__ a, __extension__ b, __extension__ c; 43 54 } 44 55
Note: See TracChangeset
for help on using the changeset viewer.