diff --git a/tests-cpp/test88.c b/tests-cpp/test88.c new file mode 100644 index 0000000..916c0af --- /dev/null +++ b/tests-cpp/test88.c @@ -0,0 +1,5 @@ +# if boohoohoo +int x; +#else +int y; +#endif diff --git a/tests-err/test14.c b/tests-err/test14.c new file mode 100644 index 0000000..109c7a3 --- /dev/null +++ b/tests-err/test14.c @@ -0,0 +1,7 @@ +main() { + int a; + typedef b = (a); + typeof (int *) c; + typeof (d[0](1)) e; + c = &a; +} diff --git a/tests-err/test14.out b/tests-err/test14.out new file mode 100644 index 0000000..109c7a3 --- /dev/null +++ b/tests-err/test14.out @@ -0,0 +1,7 @@ +main() { + int a; + typedef b = (a); + typeof (int *) c; + typeof (d[0](1)) e; + c = &a; +} diff --git a/tests-err/test15.c b/tests-err/test15.c new file mode 100644 index 0000000..9e3c551 --- /dev/null +++ b/tests-err/test15.c @@ -0,0 +1,20 @@ + //generalized lvalues +foo() { + int a,b,f; + (a, b) += 5; + a, (b += 5); + &(a, b); + a, &b; + (a ? b : c) = 5 ; + (a ? b = 5 : (c = 5)) ; + + (int)a = 5 ; + (int)(a = (char *)(int)5) ; + + (int)a += 5; + (int)(a = (char *)(int) ((int)a + 5)); + + (int)f = 1; + (int *)&f; +} + diff --git a/tests-err/test15.out b/tests-err/test15.out new file mode 100644 index 0000000..488f646 --- /dev/null +++ b/tests-err/test15.out @@ -0,0 +1 @@ + //generalized lvalues diff --git a/tests-err/test23.c b/tests-err/test23.c new file mode 100644 index 0000000..3ba9207 --- /dev/null +++ b/tests-err/test23.c @@ -0,0 +1,12 @@ +now() { + union foo { int i; double d; }; + int x; + double y; + void hack (union foo); + union foo u; + u = (union foo) x == u.i = x; + u = (union foo) y == u.d = y; + hack ((union foo) x); + +} + diff --git a/tests-err/test23.out b/tests-err/test23.out new file mode 100644 index 0000000..e69de29 diff --git a/tests-err/test26.c b/tests-err/test26.c new file mode 100644 index 0000000..133f235 --- /dev/null +++ b/tests-err/test26.c @@ -0,0 +1,6 @@ + func (x, y) { + int x, y; + return x+y; + } + + diff --git a/tests-err/test26.out b/tests-err/test26.out new file mode 100644 index 0000000..133f235 --- /dev/null +++ b/tests-err/test26.out @@ -0,0 +1,6 @@ + func (x, y) { + int x, y; + return x+y; + } + + diff --git a/tests-err/test41.c b/tests-err/test41.c new file mode 100644 index 0000000..b1d8636 --- /dev/null +++ b/tests-err/test41.c @@ -0,0 +1,14 @@ +int x; + +int y; + +test(){ +switch (x) { + case 1: y=3; + break; + case 2: y=90; + break; + default: +} +} + diff --git a/tests-err/test41.out b/tests-err/test41.out new file mode 100644 index 0000000..7eea703 --- /dev/null +++ b/tests-err/test41.out @@ -0,0 +1,4 @@ +int x; + +int y; + diff --git a/tests-err/test43.c b/tests-err/test43.c new file mode 100644 index 0000000..d2a941f --- /dev/null +++ b/tests-err/test43.c @@ -0,0 +1,15 @@ +int x; + +int y; + +test(){ +if (x<10) { +goto l66;; +} else { +y=100; + y++; +l66: +} + +} + diff --git a/tests-err/test43.out b/tests-err/test43.out new file mode 100644 index 0000000..7eea703 --- /dev/null +++ b/tests-err/test43.out @@ -0,0 +1,4 @@ +int x; + +int y; + diff --git a/tests-err/test45.c b/tests-err/test45.c new file mode 100644 index 0000000..552a58d --- /dev/null +++ b/tests-err/test45.c @@ -0,0 +1,12 @@ +typedef struct h765t_ h765t ; +struct h765t_ { +void *ll881ss[10]; +}; +void gg (h765t *q23w3) +{ + if (q23w3->ll881ss[3]) { + if (1) { + q23w3->ll881ss[3] = (void *) (++(int)q23w3->ll881ss[3]); + } + } +} diff --git a/tests-err/test45.out b/tests-err/test45.out new file mode 100644 index 0000000..1ca7436 --- /dev/null +++ b/tests-err/test45.out @@ -0,0 +1,4 @@ +typedef struct h765t_ h765t ; +struct h765t_ { +void *ll881ss[10]; +}; diff --git a/tests-err/test5.c b/tests-err/test5.c new file mode 100644 index 0000000..7ff8fd6 --- /dev/null +++ b/tests-err/test5.c @@ -0,0 +1,18 @@ +typedef void *PyObject; + + int +PyMapping_SetItemString(o, key, value) + PyObject *o; + char *key; + PyObject *value; +{ + PyObject *okey; + int r; + + if( ! key) return Py_ReturnNullError(),-1; + if (!(okey=PyString_FromString(key))) return -1; + r = PyObject_SetItem(o,okey,value); + if (--( okey )->ob_refcnt != 0) ; else (*( okey )->ob_type->tp_dealloc)((PyObject *)( okey )) ; + return r; +} + diff --git a/tests-err/test5.out b/tests-err/test5.out new file mode 100644 index 0000000..7ff8fd6 --- /dev/null +++ b/tests-err/test5.out @@ -0,0 +1,18 @@ +typedef void *PyObject; + + int +PyMapping_SetItemString(o, key, value) + PyObject *o; + char *key; + PyObject *value; +{ + PyObject *okey; + int r; + + if( ! key) return Py_ReturnNullError(),-1; + if (!(okey=PyString_FromString(key))) return -1; + r = PyObject_SetItem(o,okey,value); + if (--( okey )->ob_refcnt != 0) ; else (*( okey )->ob_type->tp_dealloc)((PyObject *)( okey )) ; + return r; +} + diff --git a/tests-err/test57.c b/tests-err/test57.c new file mode 100644 index 0000000..7195919 --- /dev/null +++ b/tests-err/test57.c @@ -0,0 +1,6 @@ + +void F(char l) +{ + return l<= '\~'; +} + diff --git a/tests-err/test57.out b/tests-err/test57.out new file mode 100644 index 0000000..7195919 --- /dev/null +++ b/tests-err/test57.out @@ -0,0 +1,6 @@ + +void F(char l) +{ + return l<= '\~'; +} + diff --git a/tests-err/test66.c b/tests-err/test66.c new file mode 100644 index 0000000..e4a9469 --- /dev/null +++ b/tests-err/test66.c @@ -0,0 +1,4 @@ +f (__builtin_va_alist ) + int __builtin_va_alist;... +{ } + diff --git a/tests-err/test66.out b/tests-err/test66.out new file mode 100644 index 0000000..e69de29 diff --git a/tests-err/test71.c b/tests-err/test71.c new file mode 100644 index 0000000..d6c76be --- /dev/null +++ b/tests-err/test71.c @@ -0,0 +1,6 @@ +f (__builtin_va_alist ) + int __builtin_va_alist;... +{ + +} + diff --git a/tests-err/test71.out b/tests-err/test71.out new file mode 100644 index 0000000..e69de29 diff --git a/tests-gnu/test12.c b/tests-gnu/test12.c new file mode 100644 index 0000000..7e63c17 --- /dev/null +++ b/tests-gnu/test12.c @@ -0,0 +1,19 @@ +int foo(); +int abs; +int main() { + abs = ({ + __label__ hey, now; + + int y = foo (); + int z; + void *it; + it = &&hey; + + hey: if (y > 0) z = y; + + else z = - y; + z; + }); + +} + diff --git a/tests-gnu/test12.out b/tests-gnu/test12.out new file mode 100644 index 0000000..7e63c17 --- /dev/null +++ b/tests-gnu/test12.out @@ -0,0 +1,19 @@ +int foo(); +int abs; +int main() { + abs = ({ + __label__ hey, now; + + int y = foo (); + int z; + void *it; + it = &&hey; + + hey: if (y > 0) z = y; + + else z = - y; + z; + }); + +} + diff --git a/tests-gnu/test13.c b/tests-gnu/test13.c new file mode 100644 index 0000000..7549ba4 --- /dev/null +++ b/tests-gnu/test13.c @@ -0,0 +1,8 @@ + foo (double a, double b) + { + auto double square (double z); + double square (double z) { return z * z; } + + return square (a) + square (b); + } + diff --git a/tests-gnu/test13.out b/tests-gnu/test13.out new file mode 100644 index 0000000..7549ba4 --- /dev/null +++ b/tests-gnu/test13.out @@ -0,0 +1,8 @@ + foo (double a, double b) + { + auto double square (double z); + double square (double z) { return z * z; } + + return square (a) + square (b); + } + diff --git a/tests-gnu/test14.c b/tests-gnu/test14.c new file mode 100644 index 0000000..710f515 --- /dev/null +++ b/tests-gnu/test14.c @@ -0,0 +1,7 @@ +main() { + int a; + //typedef b = (a); + typeof (int *) c; + typeof (d[0](1)) e; + c = &a; +} diff --git a/tests-gnu/test14.out b/tests-gnu/test14.out new file mode 100644 index 0000000..710f515 --- /dev/null +++ b/tests-gnu/test14.out @@ -0,0 +1,7 @@ +main() { + int a; + //typedef b = (a); + typeof (int *) c; + typeof (d[0](1)) e; + c = &a; +} diff --git a/tests-gnu/test16.c b/tests-gnu/test16.c new file mode 100644 index 0000000..8ecaa95 --- /dev/null +++ b/tests-gnu/test16.c @@ -0,0 +1,5 @@ +hey() { + int x,y,z; + z= x ? : y; +} + diff --git a/tests-gnu/test16.out b/tests-gnu/test16.out new file mode 100644 index 0000000..8ecaa95 --- /dev/null +++ b/tests-gnu/test16.out @@ -0,0 +1,5 @@ +hey() { + int x,y,z; + z= x ? : y; +} + diff --git a/tests-gnu/test17.c b/tests-gnu/test17.c new file mode 100644 index 0000000..2915386 --- /dev/null +++ b/tests-gnu/test17.c @@ -0,0 +1,11 @@ +heynow() { + long long int x = 10LL; + unsigned long long int y = 9ULL; + __complex__ float c, d, e; + float f; + c = 10.0 + 3.0fi; + d = ~ c; + f = __real__ c; + f = __imag__ d; +} + diff --git a/tests-gnu/test17.out b/tests-gnu/test17.out new file mode 100644 index 0000000..2915386 --- /dev/null +++ b/tests-gnu/test17.out @@ -0,0 +1,11 @@ +heynow() { + long long int x = 10LL; + unsigned long long int y = 9ULL; + __complex__ float c, d, e; + float f; + c = 10.0 + 3.0fi; + d = ~ c; + f = __real__ c; + f = __imag__ d; +} + diff --git a/tests-gnu/test18.c b/tests-gnu/test18.c new file mode 100644 index 0000000..9048d86 --- /dev/null +++ b/tests-gnu/test18.c @@ -0,0 +1,7 @@ +concat_fopen (char *s1, char *s2, char *mode) +{ + char str[strlen (s1) + strlen (s2) + 1]; + strcpy (str, s1); + strcat (str, s2); + return fopen (str, mode); +} diff --git a/tests-gnu/test18.out b/tests-gnu/test18.out new file mode 100644 index 0000000..9048d86 --- /dev/null +++ b/tests-gnu/test18.out @@ -0,0 +1,7 @@ +concat_fopen (char *s1, char *s2, char *mode) +{ + char str[strlen (s1) + strlen (s2) + 1]; + strcpy (str, s1); + strcat (str, s2); + return fopen (str, mode); +} diff --git a/tests-gnu/test21.c b/tests-gnu/test21.c new file mode 100644 index 0000000..8e49786 --- /dev/null +++ b/tests-gnu/test21.c @@ -0,0 +1,15 @@ + +heynow() { + struct foo {int a; char b[2];} structure; + char **foo1 = (char *[]) { "x", "y", "z" }; + + structure = ((struct foo) {x + y, 'a', 0}); + + { + struct foo temp = {x + y, 'a', 0}; + structure = temp; + } + + output = ((int[]) { 2, x, 28 }) [input]; +} + diff --git a/tests-gnu/test21.out b/tests-gnu/test21.out new file mode 100644 index 0000000..8e49786 --- /dev/null +++ b/tests-gnu/test21.out @@ -0,0 +1,15 @@ + +heynow() { + struct foo {int a; char b[2];} structure; + char **foo1 = (char *[]) { "x", "y", "z" }; + + structure = ((struct foo) {x + y, 'a', 0}); + + { + struct foo temp = {x + y, 'a', 0}; + structure = temp; + } + + output = ((int[]) { 2, x, 28 }) [input]; +} + diff --git a/tests-gnu/test22.c b/tests-gnu/test22.c new file mode 100644 index 0000000..fd87de9 --- /dev/null +++ b/tests-gnu/test22.c @@ -0,0 +1,23 @@ +aikoAllDay() { + int a[6] = { [4] 29, [2] = 15 }; + int ab[6] = { 0, 0, 15, 0, 29, 0 }; + int widths[] = { [0 ... 9] = 1, [10 ... 99] = 2, [100] = 3 }; + + int xvalue, yvalue, v1, v2, v4; + struct point { int x, y; }; + struct point p = { xvalue, yvalue }; + struct point p = { y: yvalue, x: xvalue }; + struct point p = { .y = yvalue, .x = xvalue }; + + union foo { int i; double d; }; + union foo f = { d: 4 }; + + int a[6] = { [1] = v1, v2, [4] = v4 }; + int a[6] = { 0, v1, v2, 0, v4, 0 }; + + int whitespace[256] + = { [' '] = 1, ['\t'] = 1, ['\h'] = 1, + ['\f'] = 1, ['\n'] = 1, ['\r'] = 1 }; + fn(1,2,3); +} + diff --git a/tests-gnu/test22.out b/tests-gnu/test22.out new file mode 100644 index 0000000..fd87de9 --- /dev/null +++ b/tests-gnu/test22.out @@ -0,0 +1,23 @@ +aikoAllDay() { + int a[6] = { [4] 29, [2] = 15 }; + int ab[6] = { 0, 0, 15, 0, 29, 0 }; + int widths[] = { [0 ... 9] = 1, [10 ... 99] = 2, [100] = 3 }; + + int xvalue, yvalue, v1, v2, v4; + struct point { int x, y; }; + struct point p = { xvalue, yvalue }; + struct point p = { y: yvalue, x: xvalue }; + struct point p = { .y = yvalue, .x = xvalue }; + + union foo { int i; double d; }; + union foo f = { d: 4 }; + + int a[6] = { [1] = v1, v2, [4] = v4 }; + int a[6] = { 0, v1, v2, 0, v4, 0 }; + + int whitespace[256] + = { [' '] = 1, ['\t'] = 1, ['\h'] = 1, + ['\f'] = 1, ['\n'] = 1, ['\r'] = 1 }; + fn(1,2,3); +} + diff --git a/tests-gnu/test24.c b/tests-gnu/test24.c new file mode 100644 index 0000000..57a4cf9 --- /dev/null +++ b/tests-gnu/test24.c @@ -0,0 +1,17 @@ + +struct foo {int a[5];} ; +struct foo f(); + +inline int bar (int index) { + int c; + enum blah; + c = __alignof(foo.a); + c = __alignof(unsigned long int); + switch (index) { + case 'a'...'z': + break; + } + return f().a[index]; + +} + diff --git a/tests-gnu/test24.out b/tests-gnu/test24.out new file mode 100644 index 0000000..57a4cf9 --- /dev/null +++ b/tests-gnu/test24.out @@ -0,0 +1,17 @@ + +struct foo {int a[5];} ; +struct foo f(); + +inline int bar (int index) { + int c; + enum blah; + c = __alignof(foo.a); + c = __alignof(unsigned long int); + switch (index) { + case 'a'...'z': + break; + } + return f().a[index]; + +} + diff --git a/tests-gnu/test25.c b/tests-gnu/test25.c new file mode 100644 index 0000000..d983373 --- /dev/null +++ b/tests-gnu/test25.c @@ -0,0 +1,77 @@ + void fatal () __attribute__ ((noreturn)); + + typedef void voidfn (); + + volatile voidfn fatal; + + int square (int) __attribute__ ((const)); + + typedef int intfn (); + + extern const intfn square; + + extern int + my_printf (void *my_object, const char *my_format, ...) + __attribute__ ((format (printf, 2, 3))); + + extern char * + my_dgettext (char *my_domain, const char *my_format) + __attribute__ ((format_arg (2))); + + extern void foobar (void) __attribute__ ((section ("bar"))); + + void __f () { /* do something */; } + void f () __attribute__ ((weak, alias ("__f"))); + + int x __attribute__ ((aligned (16), packed)) = 0; + + struct foo { int x[2] __attribute__ ((aligned (8))); }; + + short array[3] __attribute__ ((aligned)); + + struct foo1 + { + char a; + int x[2] __attribute__ ((packed)); + }; + + struct duart a __attribute__ ((section ("DUART_A"))) = { 0 }; + struct duart b __attribute__ ((section ("DUART_B"))) = { 0 }; + char stack[10000] __attribute__ ((section ("STACK"))) = { 0 }; + int init_data __attribute__ ((section ("INITDATA"))) = 0; + + struct S { short f[3]; } __attribute__ ((aligned (8))); + typedef int more_aligned_int __attribute__ ((aligned (8))); + + union wait { int a, __ip; }; + typedef int pid_t; + + typedef union + { + int *__ip; + union wait *__up; + } wait_status_ptr_t __attribute__ ((__transparent_union__)); + + pid_t wait (wait_status_ptr_t); + + int w1 () { int w; return wait (&w); } + int w2 () { union wait w; return wait (&w); } + + + pid_t wait (wait_status_ptr_t p) + { + return waitpid (-1, p.__ip, 0); + } + + main() + { + /* Initialize stack pointer */ + init_sp (stack + sizeof (stack)); + + /* Initialize initialized data */ + memcpy (&init_data, &data, &edata - &data); + + /* Turn on the serial ports */ + init_duart (&a); + init_duart (&b); + } diff --git a/tests-gnu/test25.out b/tests-gnu/test25.out new file mode 100644 index 0000000..d983373 --- /dev/null +++ b/tests-gnu/test25.out @@ -0,0 +1,77 @@ + void fatal () __attribute__ ((noreturn)); + + typedef void voidfn (); + + volatile voidfn fatal; + + int square (int) __attribute__ ((const)); + + typedef int intfn (); + + extern const intfn square; + + extern int + my_printf (void *my_object, const char *my_format, ...) + __attribute__ ((format (printf, 2, 3))); + + extern char * + my_dgettext (char *my_domain, const char *my_format) + __attribute__ ((format_arg (2))); + + extern void foobar (void) __attribute__ ((section ("bar"))); + + void __f () { /* do something */; } + void f () __attribute__ ((weak, alias ("__f"))); + + int x __attribute__ ((aligned (16), packed)) = 0; + + struct foo { int x[2] __attribute__ ((aligned (8))); }; + + short array[3] __attribute__ ((aligned)); + + struct foo1 + { + char a; + int x[2] __attribute__ ((packed)); + }; + + struct duart a __attribute__ ((section ("DUART_A"))) = { 0 }; + struct duart b __attribute__ ((section ("DUART_B"))) = { 0 }; + char stack[10000] __attribute__ ((section ("STACK"))) = { 0 }; + int init_data __attribute__ ((section ("INITDATA"))) = 0; + + struct S { short f[3]; } __attribute__ ((aligned (8))); + typedef int more_aligned_int __attribute__ ((aligned (8))); + + union wait { int a, __ip; }; + typedef int pid_t; + + typedef union + { + int *__ip; + union wait *__up; + } wait_status_ptr_t __attribute__ ((__transparent_union__)); + + pid_t wait (wait_status_ptr_t); + + int w1 () { int w; return wait (&w); } + int w2 () { union wait w; return wait (&w); } + + + pid_t wait (wait_status_ptr_t p) + { + return waitpid (-1, p.__ip, 0); + } + + main() + { + /* Initialize stack pointer */ + init_sp (stack + sizeof (stack)); + + /* Initialize initialized data */ + memcpy (&init_data, &data, &edata - &data); + + /* Turn on the serial ports */ + init_duart (&a); + init_duart (&b); + } diff --git a/tests-gnu/test26.c b/tests-gnu/test26.c new file mode 100644 index 0000000..2b56445 --- /dev/null +++ b/tests-gnu/test26.c @@ -0,0 +1,3 @@ + int foo asm ("myfoo") = 2; + + extern func () asm ("FUNC"); diff --git a/tests-gnu/test26.out b/tests-gnu/test26.out new file mode 100644 index 0000000..2b56445 --- /dev/null +++ b/tests-gnu/test26.out @@ -0,0 +1,3 @@ + int foo asm ("myfoo") = 2; + + extern func () asm ("FUNC"); diff --git a/tests-gnu/test27.c b/tests-gnu/test27.c new file mode 100644 index 0000000..af2c739 --- /dev/null +++ b/tests-gnu/test27.c @@ -0,0 +1,30 @@ +fn() { + asm ("fsinx %1,%0" : "=f" (result) : "f" (angle)); + asm ("combine %2,%0" : "=r" (foo) : "0" (foo), "g" (bar)); + + asm ("combine %2,%0" : "=r" (foo) : "r" (foo), "g" (bar)); + + asm volatile ("movc3 %0,%1,%2" + : /* no outputs */ + : "g" (from), "g" (to), "g" (count) + : "r0", "r1", "r2", "r3", "r4", "r5"); + + asm ("movl %0,r9;movl %1,r10;call _foo" + : /* no outputs */ + : "g" (from), "g" (to) + : "r9", "r10"); + + asm ("clr %0;frob %1;beq 0f;mov #1,%0;0:" + : "g" (result) + : "g" (input)); + + { double __value, __arg = (x); + asm ("fsinx %1,%0": "=f" (__value): "f" (__arg)); + __value; } + + + { int __old; + asm volatile ("get_and_set_priority %0, %1": "=g" (__old) : "g" (new)); + __old; } +} + diff --git a/tests-gnu/test27.out b/tests-gnu/test27.out new file mode 100644 index 0000000..af2c739 --- /dev/null +++ b/tests-gnu/test27.out @@ -0,0 +1,30 @@ +fn() { + asm ("fsinx %1,%0" : "=f" (result) : "f" (angle)); + asm ("combine %2,%0" : "=r" (foo) : "0" (foo), "g" (bar)); + + asm ("combine %2,%0" : "=r" (foo) : "r" (foo), "g" (bar)); + + asm volatile ("movc3 %0,%1,%2" + : /* no outputs */ + : "g" (from), "g" (to), "g" (count) + : "r0", "r1", "r2", "r3", "r4", "r5"); + + asm ("movl %0,r9;movl %1,r10;call _foo" + : /* no outputs */ + : "g" (from), "g" (to) + : "r9", "r10"); + + asm ("clr %0;frob %1;beq 0f;mov #1,%0;0:" + : "g" (result) + : "g" (input)); + + { double __value, __arg = (x); + asm ("fsinx %1,%0": "=f" (__value): "f" (__arg)); + __value; } + + + { int __old; + asm volatile ("get_and_set_priority %0, %1": "=g" (__old) : "g" (new)); + __old; } +} + diff --git a/tests-gnu/test28.c b/tests-gnu/test28.c new file mode 100644 index 0000000..b1d94e3 --- /dev/null +++ b/tests-gnu/test28.c @@ -0,0 +1,8 @@ +// C++ comment + +int f$; + + tester (int len; char data[len][len], int len) { + + } + diff --git a/tests-gnu/test28.out b/tests-gnu/test28.out new file mode 100644 index 0000000..b1d94e3 --- /dev/null +++ b/tests-gnu/test28.out @@ -0,0 +1,8 @@ +// C++ comment + +int f$; + + tester (int len; char data[len][len], int len) { + + } + diff --git a/tests-gnu/test29.c b/tests-gnu/test29.c new file mode 100644 index 0000000..f1dbd62 --- /dev/null +++ b/tests-gnu/test29.c @@ -0,0 +1,23 @@ + +typedef struct a { + int b; + } c,*d; + +extern int execv(const char *, char *const []); +int b; +int a = b = 1; +static char *predefs = "whatever \ +more "; +char *temporary_firstobj = +(char *) __extension__ +({ struct obstack *__h = ( &temporary_obstack ); + __extension__ ({ struct obstack *__o = ( __h ); + int __len = ( ( 0 ) ); + if (__o->chunk_limit - __o->next_free < __len) _obstack_newchunk (__o, __len); __o->next_free += __len; (void) 0; }) ; __extension__ ({ struct obstack *__o1 = ( __h ); void *value; value = (void *) __o1->object_base; if (__o1->next_free == value) __o1->maybe_empty_object = 1; __o1->next_free = (( ((( __o1->next_free ) - (char *) 0) +__o1->alignment_mask) & ~ (__o1->alignment_mask) ) + (char *) 0) ; if (__o1->next_free - (char *)__o1->chunk > __o1->chunk_limit - (char *)__o1->chunk) __o1->next_free = __o1->chunk_limit; __o1->object_base = __o1->next_free; value; }) ; }) ; + +static char cPickle_module_documentation[] = +"C implementation and optimization of the Python pickle module\n" +"\n" +"cPickle.c,v 1.48 1997/12/07 14:37:39 jim Exp\n" +; + diff --git a/tests-gnu/test29.out b/tests-gnu/test29.out new file mode 100644 index 0000000..f1dbd62 --- /dev/null +++ b/tests-gnu/test29.out @@ -0,0 +1,23 @@ + +typedef struct a { + int b; + } c,*d; + +extern int execv(const char *, char *const []); +int b; +int a = b = 1; +static char *predefs = "whatever \ +more "; +char *temporary_firstobj = +(char *) __extension__ +({ struct obstack *__h = ( &temporary_obstack ); + __extension__ ({ struct obstack *__o = ( __h ); + int __len = ( ( 0 ) ); + if (__o->chunk_limit - __o->next_free < __len) _obstack_newchunk (__o, __len); __o->next_free += __len; (void) 0; }) ; __extension__ ({ struct obstack *__o1 = ( __h ); void *value; value = (void *) __o1->object_base; if (__o1->next_free == value) __o1->maybe_empty_object = 1; __o1->next_free = (( ((( __o1->next_free ) - (char *) 0) +__o1->alignment_mask) & ~ (__o1->alignment_mask) ) + (char *) 0) ; if (__o1->next_free - (char *)__o1->chunk > __o1->chunk_limit - (char *)__o1->chunk) __o1->next_free = __o1->chunk_limit; __o1->object_base = __o1->next_free; value; }) ; }) ; + +static char cPickle_module_documentation[] = +"C implementation and optimization of the Python pickle module\n" +"\n" +"cPickle.c,v 1.48 1997/12/07 14:37:39 jim Exp\n" +; + diff --git a/tests-gnu/test30.c b/tests-gnu/test30.c new file mode 100644 index 0000000..cbac4b3 --- /dev/null +++ b/tests-gnu/test30.c @@ -0,0 +1,46 @@ +typedef struct bitmap_element_def +{ + struct bitmap_element_def *next; + struct bitmap_element_def *prev; + unsigned int indx; + unsigned int bits[2 ]; +} bitmap_element; + + +typedef struct bitmap_head_def { + bitmap_element *first; + bitmap_element *current; + int indx; +} bitmap_head, *bitmap; + +static __inline__ void +bitmap_element_free (head, elt) + bitmap head; + bitmap_element *elt; +{ + bitmap_element *next = elt->next; +} + +main() { + /* See if this is a branch that is part of the path. If so, and it is + to be taken, do so. */ + if (next_branch->branch == insn) + { + enum taken status = next_branch++->status; + if (status != NOT_TAKEN) + { + if (status == TAKEN) + record_jump_equiv (insn, 1); + else + invalidate_skipped_block (NEXT_INSN (insn)); + + /* Set the last insn as the jump insn; it doesn't affect cc0. + Then follow this branch. */ + prev_insn_cc0 = 0; + prev_insn = insn; + insn = JUMP_LABEL (insn); + continue; + } + } +} + diff --git a/tests-gnu/test30.out b/tests-gnu/test30.out new file mode 100644 index 0000000..cbac4b3 --- /dev/null +++ b/tests-gnu/test30.out @@ -0,0 +1,46 @@ +typedef struct bitmap_element_def +{ + struct bitmap_element_def *next; + struct bitmap_element_def *prev; + unsigned int indx; + unsigned int bits[2 ]; +} bitmap_element; + + +typedef struct bitmap_head_def { + bitmap_element *first; + bitmap_element *current; + int indx; +} bitmap_head, *bitmap; + +static __inline__ void +bitmap_element_free (head, elt) + bitmap head; + bitmap_element *elt; +{ + bitmap_element *next = elt->next; +} + +main() { + /* See if this is a branch that is part of the path. If so, and it is + to be taken, do so. */ + if (next_branch->branch == insn) + { + enum taken status = next_branch++->status; + if (status != NOT_TAKEN) + { + if (status == TAKEN) + record_jump_equiv (insn, 1); + else + invalidate_skipped_block (NEXT_INSN (insn)); + + /* Set the last insn as the jump insn; it doesn't affect cc0. + Then follow this branch. */ + prev_insn_cc0 = 0; + prev_insn = insn; + insn = JUMP_LABEL (insn); + continue; + } + } +} + diff --git a/tests-gnu/test31.c b/tests-gnu/test31.c new file mode 100644 index 0000000..2811a71 --- /dev/null +++ b/tests-gnu/test31.c @@ -0,0 +1,39 @@ +typedef struct ppptype_ { + void *d; + void *l; + int t; + int m; +} ppptype; +typedef struct jjjtype_ jjjtype ; +typedef __typeof__ (sizeof (0)) size_t; +typedef unsigned char uchar; +typedef unsigned short ushort; +typedef unsigned long ulong; +typedef ulong cttype; +typedef char *zz_list; +typedef int boolean; +typedef unsigned char tl; +typedef void abctype; +typedef int wwd_t; +typedef enum { + F_FE, + F_U, + F_E, +} yy; +typedef void xyz; +typedef xyz (xyz_t)(void); +typedef abctype (abcproc)(void ); +typedef boolean (mnsss)(ppptype *); +typedef void (void_r)(void *, ...); +typedef boolean (boolean_e)(void *, ...); +typedef void (*tyyx_func)(void *, void *, void *); +typedef boolean (*bbhg_type)(jjjtype *); + +typedef struct cl_ { + union { + uchar y[4]; + ushort s[2]; + ulong d; + } d; +} cl; + diff --git a/tests-gnu/test31.out b/tests-gnu/test31.out new file mode 100644 index 0000000..2811a71 --- /dev/null +++ b/tests-gnu/test31.out @@ -0,0 +1,39 @@ +typedef struct ppptype_ { + void *d; + void *l; + int t; + int m; +} ppptype; +typedef struct jjjtype_ jjjtype ; +typedef __typeof__ (sizeof (0)) size_t; +typedef unsigned char uchar; +typedef unsigned short ushort; +typedef unsigned long ulong; +typedef ulong cttype; +typedef char *zz_list; +typedef int boolean; +typedef unsigned char tl; +typedef void abctype; +typedef int wwd_t; +typedef enum { + F_FE, + F_U, + F_E, +} yy; +typedef void xyz; +typedef xyz (xyz_t)(void); +typedef abctype (abcproc)(void ); +typedef boolean (mnsss)(ppptype *); +typedef void (void_r)(void *, ...); +typedef boolean (boolean_e)(void *, ...); +typedef void (*tyyx_func)(void *, void *, void *); +typedef boolean (*bbhg_type)(jjjtype *); + +typedef struct cl_ { + union { + uchar y[4]; + ushort s[2]; + ulong d; + } d; +} cl; + diff --git a/tests-gnu/test33.c b/tests-gnu/test33.c new file mode 100644 index 0000000..325bb18 --- /dev/null +++ b/tests-gnu/test33.c @@ -0,0 +1,18 @@ + +static inline void +ttt (int *wwp) +{ + int xyz = 6; + do { + asm(".set noreorder; \ + lqq %7,5(%8); \ + nop; \ + ziv %2,%2,-4; \ +1:\ + ab %5,7(%1);\ + .set reorder" + : "=r" (xyz) + : "r" (wwp), "0" (xyz)); + } while (!xyz); +} + diff --git a/tests-gnu/test33.out b/tests-gnu/test33.out new file mode 100644 index 0000000..325bb18 --- /dev/null +++ b/tests-gnu/test33.out @@ -0,0 +1,18 @@ + +static inline void +ttt (int *wwp) +{ + int xyz = 6; + do { + asm(".set noreorder; \ + lqq %7,5(%8); \ + nop; \ + ziv %2,%2,-4; \ +1:\ + ab %5,7(%1);\ + .set reorder" + : "=r" (xyz) + : "r" (wwp), "0" (xyz)); + } while (!xyz); +} + diff --git a/tests-gnu/test34.c b/tests-gnu/test34.c new file mode 100644 index 0000000..9a358be --- /dev/null +++ b/tests-gnu/test34.c @@ -0,0 +1,18 @@ +static inline void +junk2 (void) +{ +long gtexews; +asm volatile (".set noreorder"); +asm volatile ("awde0 %8,$42" : "=r" (gtexews) : ); +asm volatile ("nop"); +asm volatile ("tref %7,$12" : : "r" (gtexews & ~0x00001111 ) +); +asm volatile ("nop"); +asm volatile (".set reorder"); +asm volatile (".set mips3"); +asm volatile (".set noreorder\n" + ".set noat\n" + ".set mips3"); +asm volatile ("yha0 $7 ,$29"); +} + diff --git a/tests-gnu/test34.out b/tests-gnu/test34.out new file mode 100644 index 0000000..9a358be --- /dev/null +++ b/tests-gnu/test34.out @@ -0,0 +1,18 @@ +static inline void +junk2 (void) +{ +long gtexews; +asm volatile (".set noreorder"); +asm volatile ("awde0 %8,$42" : "=r" (gtexews) : ); +asm volatile ("nop"); +asm volatile ("tref %7,$12" : : "r" (gtexews & ~0x00001111 ) +); +asm volatile ("nop"); +asm volatile (".set reorder"); +asm volatile (".set mips3"); +asm volatile (".set noreorder\n" + ".set noat\n" + ".set mips3"); +asm volatile ("yha0 $7 ,$29"); +} + diff --git a/tests-gnu/test35.c b/tests-gnu/test35.c new file mode 100644 index 0000000..8e00c8a --- /dev/null +++ b/tests-gnu/test35.c @@ -0,0 +1,7 @@ +typedef struct d4elhhtrt_ { + int alhhtrt : 6; + int bblhhtrt : 6; + int uyttffds:3 __attribute__ ((packed)) ; + int hfgeresshb:5 __attribute__ ((packed)) ; +} d4elhhtrt; + diff --git a/tests-gnu/test35.out b/tests-gnu/test35.out new file mode 100644 index 0000000..8e00c8a --- /dev/null +++ b/tests-gnu/test35.out @@ -0,0 +1,7 @@ +typedef struct d4elhhtrt_ { + int alhhtrt : 6; + int bblhhtrt : 6; + int uyttffds:3 __attribute__ ((packed)) ; + int hfgeresshb:5 __attribute__ ((packed)) ; +} d4elhhtrt; + diff --git a/tests-gnu/test36.c b/tests-gnu/test36.c new file mode 100644 index 0000000..9269665 --- /dev/null +++ b/tests-gnu/test36.c @@ -0,0 +1,3 @@ +typedef struct { + } ff6tfdrg; + diff --git a/tests-gnu/test36.out b/tests-gnu/test36.out new file mode 100644 index 0000000..9269665 --- /dev/null +++ b/tests-gnu/test36.out @@ -0,0 +1,3 @@ +typedef struct { + } ff6tfdrg; + diff --git a/tests-gnu/test37.c b/tests-gnu/test37.c new file mode 100644 index 0000000..62a8fa6 --- /dev/null +++ b/tests-gnu/test37.c @@ -0,0 +1,10 @@ + enum { DDD = -7 }; + + +struct abc_ { + struct abc *next; + enum { DDD = -7 }; + int a; + char b; +}; + diff --git a/tests-gnu/test37.out b/tests-gnu/test37.out new file mode 100644 index 0000000..62a8fa6 --- /dev/null +++ b/tests-gnu/test37.out @@ -0,0 +1,10 @@ + enum { DDD = -7 }; + + +struct abc_ { + struct abc *next; + enum { DDD = -7 }; + int a; + char b; +}; + diff --git a/tests-gnu/test39.c b/tests-gnu/test39.c new file mode 100644 index 0000000..4b25167 --- /dev/null +++ b/tests-gnu/test39.c @@ -0,0 +1,17 @@ +typedef struct x_ x; +struct x_{ +int y; +int z; +}; +x b; + +struct x_ a = {}; + +x c = {}; + +typedef struct xyz_ { +int a; +int b;; +char c; +} xyz; + diff --git a/tests-gnu/test39.out b/tests-gnu/test39.out new file mode 100644 index 0000000..4b25167 --- /dev/null +++ b/tests-gnu/test39.out @@ -0,0 +1,17 @@ +typedef struct x_ x; +struct x_{ +int y; +int z; +}; +x b; + +struct x_ a = {}; + +x c = {}; + +typedef struct xyz_ { +int a; +int b;; +char c; +} xyz; + diff --git a/tests-gnu/test40.c b/tests-gnu/test40.c new file mode 100644 index 0000000..36f905d --- /dev/null +++ b/tests-gnu/test40.c @@ -0,0 +1,21 @@ +typedef int tt67t __attribute__ ((mode (SI))); +typedef unsigned int hg554x __attribute__ ((mode (SI))); +typedef int u887 __attribute__ ((mode (DI))); + struct lo98k {tt67t d453s, s7655fd4;}; +typedef union +{ + struct lo98k s; + u887 s432; +} c443ds4; +u887 +test (u887 e9877, u887 q3209) +{ + c443ds4 w; + c443ds4 e45d45, o908oo98; + e45d45.s432 = e9877, + o908oo98.s432 = q3209; + w.s432 = ({c443ds4 y665re; __asm__ ("trt %1,%9\ + gtri %6" : "=d" ((hg554x)( y665re.s.s7655fd4 )), "=d" ((hg554x)( y665re.s.d453s )) : "d" ((hg554x)( e45d45.s.s7655fd4 )), "d" ((hg554x)( o908oo98.s.s7655fd4 ))) ; y665re.s432; }) ; + return w.s432; +} + diff --git a/tests-gnu/test40.out b/tests-gnu/test40.out new file mode 100644 index 0000000..36f905d --- /dev/null +++ b/tests-gnu/test40.out @@ -0,0 +1,21 @@ +typedef int tt67t __attribute__ ((mode (SI))); +typedef unsigned int hg554x __attribute__ ((mode (SI))); +typedef int u887 __attribute__ ((mode (DI))); + struct lo98k {tt67t d453s, s7655fd4;}; +typedef union +{ + struct lo98k s; + u887 s432; +} c443ds4; +u887 +test (u887 e9877, u887 q3209) +{ + c443ds4 w; + c443ds4 e45d45, o908oo98; + e45d45.s432 = e9877, + o908oo98.s432 = q3209; + w.s432 = ({c443ds4 y665re; __asm__ ("trt %1,%9\ + gtri %6" : "=d" ((hg554x)( y665re.s.s7655fd4 )), "=d" ((hg554x)( y665re.s.d453s )) : "d" ((hg554x)( e45d45.s.s7655fd4 )), "d" ((hg554x)( o908oo98.s.s7655fd4 ))) ; y665re.s432; }) ; + return w.s432; +} + diff --git a/tests-gnu/test41.out b/tests-gnu/test41.out new file mode 100644 index 0000000..7eea703 --- /dev/null +++ b/tests-gnu/test41.out @@ -0,0 +1,4 @@ +int x; + +int y; + diff --git a/tests-gnu/test43.out b/tests-gnu/test43.out new file mode 100644 index 0000000..d2a941f --- /dev/null +++ b/tests-gnu/test43.out @@ -0,0 +1,15 @@ +int x; + +int y; + +test(){ +if (x<10) { +goto l66;; +} else { +y=100; + y++; +l66: +} + +} + diff --git a/tests-gnu/test45.out b/tests-gnu/test45.out new file mode 100644 index 0000000..1ca7436 --- /dev/null +++ b/tests-gnu/test45.out @@ -0,0 +1,4 @@ +typedef struct h765t_ h765t ; +struct h765t_ { +void *ll881ss[10]; +}; diff --git a/tests-gnu/test52.c b/tests-gnu/test52.c new file mode 100644 index 0000000..f3c6fda --- /dev/null +++ b/tests-gnu/test52.c @@ -0,0 +1,36 @@ + +funfn(int a, int b, int c, int d, char *e) +{ + if (a) { + print(); + return b; + } + if (b) { + int localfn() { + return a; + } + exit(c); + + } + if (d) { + __builtin_return( null ); + } + return c; +} + +fn() { + print("whoa"); +} + +fn2() { + if (1) + return 2; +} + +main() { + malloc(10); + nonMalloc(20); + fn(); + funfn(1,2,3,4,"hey"); +} + diff --git a/tests-gnu/test52.out b/tests-gnu/test52.out new file mode 100644 index 0000000..f3c6fda --- /dev/null +++ b/tests-gnu/test52.out @@ -0,0 +1,36 @@ + +funfn(int a, int b, int c, int d, char *e) +{ + if (a) { + print(); + return b; + } + if (b) { + int localfn() { + return a; + } + exit(c); + + } + if (d) { + __builtin_return( null ); + } + return c; +} + +fn() { + print("whoa"); +} + +fn2() { + if (1) + return 2; +} + +main() { + malloc(10); + nonMalloc(20); + fn(); + funfn(1,2,3,4,"hey"); +} + diff --git a/tests-gnu/test53.c b/tests-gnu/test53.c new file mode 100644 index 0000000..153a2f4 --- /dev/null +++ b/tests-gnu/test53.c @@ -0,0 +1,9 @@ +void * validate_malloc(typeof(sizeof(0)) size, void *pc); +void * get_current_pc(void); +void fn_entry(int functionId); +void fn_exit(int functionId); + +main() { + exit(0); +} + diff --git a/tests-gnu/test53.out b/tests-gnu/test53.out new file mode 100644 index 0000000..153a2f4 --- /dev/null +++ b/tests-gnu/test53.out @@ -0,0 +1,9 @@ +void * validate_malloc(typeof(sizeof(0)) size, void *pc); +void * get_current_pc(void); +void fn_entry(int functionId); +void fn_exit(int functionId); + +main() { + exit(0); +} + diff --git a/tests-gnu/test54.c b/tests-gnu/test54.c new file mode 100644 index 0000000..aea525c --- /dev/null +++ b/tests-gnu/test54.c @@ -0,0 +1,18 @@ +extern void rt(long, long); +extern long rn(void); +extern void rl(char*, int, int); +int rd (void **, int) ; +rf (int *rnx) +{ + return (rnx); +} + +rnn (int rny) +{ + return (rny); +} + ; + ; +extern const int XYZ ; ; + ; + diff --git a/tests-gnu/test54.out b/tests-gnu/test54.out new file mode 100644 index 0000000..aea525c --- /dev/null +++ b/tests-gnu/test54.out @@ -0,0 +1,18 @@ +extern void rt(long, long); +extern long rn(void); +extern void rl(char*, int, int); +int rd (void **, int) ; +rf (int *rnx) +{ + return (rnx); +} + +rnn (int rny) +{ + return (rny); +} + ; + ; +extern const int XYZ ; ; + ; + diff --git a/tests-gnu/test56.c b/tests-gnu/test56.c new file mode 100644 index 0000000..0c1c4d8 --- /dev/null +++ b/tests-gnu/test56.c @@ -0,0 +1,2 @@ +cat = 13; + diff --git a/tests-gnu/test56.out b/tests-gnu/test56.out new file mode 100644 index 0000000..0c1c4d8 --- /dev/null +++ b/tests-gnu/test56.out @@ -0,0 +1,2 @@ +cat = 13; + diff --git a/tests-gnu/test58.c b/tests-gnu/test58.c new file mode 100644 index 0000000..ea2153f --- /dev/null +++ b/tests-gnu/test58.c @@ -0,0 +1,7 @@ +g (); +f () +{ + int seed; + g (seed); +} + diff --git a/tests-gnu/test58.out b/tests-gnu/test58.out new file mode 100644 index 0000000..ea2153f --- /dev/null +++ b/tests-gnu/test58.out @@ -0,0 +1,7 @@ +g (); +f () +{ + int seed; + g (seed); +} + diff --git a/tests-gnu/test59.out b/tests-gnu/test59.out new file mode 100644 index 0000000..e3170cb --- /dev/null +++ b/tests-gnu/test59.out @@ -0,0 +1,2 @@ +typedef long time_t; + diff --git a/tests-gnu/test60.out b/tests-gnu/test60.out new file mode 100644 index 0000000..039a88d --- /dev/null +++ b/tests-gnu/test60.out @@ -0,0 +1,3 @@ +//long int s[5] = L"abcd"; +char *s = L"abcd"; + diff --git a/tests-gnu/test61.c b/tests-gnu/test61.c new file mode 100644 index 0000000..210571a --- /dev/null +++ b/tests-gnu/test61.c @@ -0,0 +1,9 @@ +struct s +{ + int a; + int b; + short c; + int d[3]; +}; +struct s s = { .b = 3, .d = {2,0,0} }; + diff --git a/tests-gnu/test61.out b/tests-gnu/test61.out new file mode 100644 index 0000000..210571a --- /dev/null +++ b/tests-gnu/test61.out @@ -0,0 +1,9 @@ +struct s +{ + int a; + int b; + short c; + int d[3]; +}; +struct s s = { .b = 3, .d = {2,0,0} }; + diff --git a/tests-gnu/test62.c b/tests-gnu/test62.c new file mode 100644 index 0000000..2acf909 --- /dev/null +++ b/tests-gnu/test62.c @@ -0,0 +1,8 @@ +struct s { + int c[3]; +}; + +struct s s = { + c: {1, 2, 3} +}; + diff --git a/tests-gnu/test62.out b/tests-gnu/test62.out new file mode 100644 index 0000000..2acf909 --- /dev/null +++ b/tests-gnu/test62.out @@ -0,0 +1,8 @@ +struct s { + int c[3]; +}; + +struct s s = { + c: {1, 2, 3} +}; + diff --git a/tests-gnu/test63.c b/tests-gnu/test63.c new file mode 100644 index 0000000..71de49c --- /dev/null +++ b/tests-gnu/test63.c @@ -0,0 +1,7 @@ +x(a) +{ + static void*j[]={&&l1}; + goto*j[a]; +l1:; +} + diff --git a/tests-gnu/test63.out b/tests-gnu/test63.out new file mode 100644 index 0000000..71de49c --- /dev/null +++ b/tests-gnu/test63.out @@ -0,0 +1,7 @@ +x(a) +{ + static void*j[]={&&l1}; + goto*j[a]; +l1:; +} + diff --git a/tests-gnu/test64.c b/tests-gnu/test64.c new file mode 100644 index 0000000..b29543c --- /dev/null +++ b/tests-gnu/test64.c @@ -0,0 +1,6 @@ +f() +{ +__label__ l; +l:p(); +} + diff --git a/tests-gnu/test64.out b/tests-gnu/test64.out new file mode 100644 index 0000000..b29543c --- /dev/null +++ b/tests-gnu/test64.out @@ -0,0 +1,6 @@ +f() +{ +__label__ l; +l:p(); +} + diff --git a/tests-gnu/test65.c b/tests-gnu/test65.c new file mode 100644 index 0000000..0dc780c --- /dev/null +++ b/tests-gnu/test65.c @@ -0,0 +1,7 @@ +f() +{ + __label__ mylabel; +mylabel: + goto mylabel; +} + diff --git a/tests-gnu/test65.out b/tests-gnu/test65.out new file mode 100644 index 0000000..0dc780c --- /dev/null +++ b/tests-gnu/test65.out @@ -0,0 +1,7 @@ +f() +{ + __label__ mylabel; +mylabel: + goto mylabel; +} + diff --git a/tests-gnu/test66.out b/tests-gnu/test66.out new file mode 100644 index 0000000..e69de29 diff --git a/tests-gnu/test67.c b/tests-gnu/test67.c new file mode 100644 index 0000000..51f925c --- /dev/null +++ b/tests-gnu/test67.c @@ -0,0 +1,11 @@ +f () +{ + __label__ l; + void *x() + { + return &&l; + } +l:; +} + + diff --git a/tests-gnu/test67.out b/tests-gnu/test67.out new file mode 100644 index 0000000..51f925c --- /dev/null +++ b/tests-gnu/test67.out @@ -0,0 +1,11 @@ +f () +{ + __label__ l; + void *x() + { + return &&l; + } +l:; +} + + diff --git a/tests-gnu/test68.c b/tests-gnu/test68.c new file mode 100644 index 0000000..6b47289 --- /dev/null +++ b/tests-gnu/test68.c @@ -0,0 +1,6 @@ +struct s +{ + int b; +}; +struct s s = { .b = 3 }; + diff --git a/tests-gnu/test68.out b/tests-gnu/test68.out new file mode 100644 index 0000000..6b47289 --- /dev/null +++ b/tests-gnu/test68.out @@ -0,0 +1,6 @@ +struct s +{ + int b; +}; +struct s s = { .b = 3 }; + diff --git a/tests-gnu/test70.c b/tests-gnu/test70.c new file mode 100644 index 0000000..3a9c615 --- /dev/null +++ b/tests-gnu/test70.c @@ -0,0 +1,5 @@ +f() +{ + if (!('\400')); +} + diff --git a/tests-gnu/test70.out b/tests-gnu/test70.out new file mode 100644 index 0000000..3a9c615 --- /dev/null +++ b/tests-gnu/test70.out @@ -0,0 +1,5 @@ +f() +{ + if (!('\400')); +} + diff --git a/tests-gnu/test71.out b/tests-gnu/test71.out new file mode 100644 index 0000000..e69de29 diff --git a/tests-gnu/test73.c b/tests-gnu/test73.c new file mode 100644 index 0000000..7a9ceb8 --- /dev/null +++ b/tests-gnu/test73.c @@ -0,0 +1,10 @@ +f() +{ + __label__ lbl1; + __label__ lbl2; + +lbl1:; +lbl2:; + +} + diff --git a/tests-gnu/test73.out b/tests-gnu/test73.out new file mode 100644 index 0000000..7a9ceb8 --- /dev/null +++ b/tests-gnu/test73.out @@ -0,0 +1,10 @@ +f() +{ + __label__ lbl1; + __label__ lbl2; + +lbl1:; +lbl2:; + +} + diff --git a/tests-gnu/test74.c b/tests-gnu/test74.c new file mode 100644 index 0000000..13aab35 --- /dev/null +++ b/tests-gnu/test74.c @@ -0,0 +1,5 @@ +main() +{ + if (! L'\400' != 0); +} + diff --git a/tests-gnu/test74.out b/tests-gnu/test74.out new file mode 100644 index 0000000..13aab35 --- /dev/null +++ b/tests-gnu/test74.out @@ -0,0 +1,5 @@ +main() +{ + if (! L'\400' != 0); +} + diff --git a/tests-gnu/test75.c b/tests-gnu/test75.c new file mode 100644 index 0000000..5c62c6c --- /dev/null +++ b/tests-gnu/test75.c @@ -0,0 +1,267 @@ +# 1 "a4.c" +void test0(void); +# 1 "a1.h" 1 +void test1(void); +# 1 "a11.h" 1 +void test2(void); +# 856 "a11.h" +void test3(void); +# 105 "a1.h" 2 +void test4(void); +# 1 "a13.h" 1 +void test5(void); +# 1 "a14.h" 1 +void test6(void); +# 1 "a18.h" 1 +void test7(void); +# 63 "a14.h" 2 +void test8(void); +# 133 "a13.h" 2 +void test9(void); +# 1 "a16.h" 1 +void test10(void); +# 1 "a15.h" 1 +void test11(void); +# 251 "a15.h" +void test12(void); +# 465 "a15.h" +void test13(void); +# 484 "a15.h" +void test14(void); +# 755 "a15.h" +void test15(void); +# 911 "a15.h" +void test16(void); +# 1388 "a15.h" +void test17(void); +# 1408 "a15.h" +void test18(void); +# 32 "a16.h" 2 +void test19(void); +# 229 "a13.h" 2 +void test20(void); +# 121 "a1.h" 2 +void test21(void); +# 1 "a20.h" 1 +void test22(void); +# 132 "a1.h" 2 +void test23(void); +# 1 "a999.h" 1 +void test24(void); +# 311 "a1.h" 2 +void test25(void); +# 1 "a100.h" 1 +void test26(void); +# 355 "a1.h" 2 +void test27(void); +# 1 "a30.h" 1 +void test28(void); +# 356 "a1.h" 2 +void test29(void); +# 1 "a99.h" 1 +void test30(void); +# 357 "a1.h" 2 +void test31(void); +# 1 "a32.h" 1 +void test32(void); +# 1 "a31.h" 1 +void test33(void); +# 25 "a32.h" 2 +void test34(void); +# 1 "a35.h" 1 +void test35(void); +# 33 "a32.h" 2 +void test36(void); +# 366 "a1.h" 2 +void test37(void); +# 1 "version.h" 1 +void test38(void); +# 367 "a1.h" 2 +void test39(void); +# 50 "a4.c" 2 +void test40(void); +# 1 "a3.h" 1 +void test41(void); +# 1 "a12_a11.h" 1 +void test42(void); +# 1 "a40.h" 1 +void test43(void); +# 15 "a12_a11.h" 2 +void test44(void); +# 1 "a42.h" 1 +void test45(void); +# 16 "a12_a11.h" 2 +void test46(void); +# 1 "a43.h" 1 +void test47(void); +# 1 "a44.h" 1 +void test48(void); +# 341 "a43.h" 2 +void test49(void); +# 17 "a12_a11.h" 2 +void test50(void); +# 1 "a12.h" 1 +void test51(void); +# 1 "a47.h" 1 +void test52(void); +# 301 "a12.h" 2 +void test53(void); +# 18 "a12_a11.h" 2 +void test54(void); +# 1 "a60.h" 1 +void test55(void); +# 20 "a12_a11.h" 2 +void test56(void); +# 1121 "a12_a11.h" +void test57(void); +# 1205 "a12_a11.h" +void test58(void); +# 1680 "a12_a11.h" +void test59(void); +# 1804 "a12_a11.h" +void test60(void); +# 1864 "a12_a11.h" +void test61(void); +# 871 "a3.h" 2 +void test62(void); +# 900 "a3.h" +void test63(void); +# 1226 "a3.h" +void test64(void); +# 1576 "a3.h" +void test65(void); +# 1737 "a3.h" +void test66(void); +# 1802 "a3.h" +void test67(void); +# 1947 "a3.h" +void test68(void); +# 1997 "a3.h" +void test69(void); +# 2074 "a3.h" +void test70(void); +# 2333 "a3.h" +void test71(void); +# 2528 "a3.h" +void test72(void); +# 2766 "a3.h" +void test73(void); +# 3120 "a3.h" +void test74(void); +# 3221 "a3.h" +void test75(void); +# 3244 "a3.h" +void test76(void); +# 3267 "a3.h" +void test77(void); +# 3298 "a3.h" +void test78(void); +# 3310 "a3.h" +void test79(void); +# 3332 "a3.h" +void test80(void); +# 3424 "a3.h" +void test81(void); +# 3551 "a3.h" +void test82(void); +# 3573 "a3.h" +void test83(void); +# 3738 "a3.h" +void test84(void); +# 3810 "a3.h" +void test85(void); +# 4017 "a3.h" +void test86(void); +# 4117 "a3.h" +void test87(void); +# 4131 "a3.h" +void test88(void); +# 51 "a4.c" 2 +void test89(void); +# 1 "a2.h" 1 +void test90(void); +# 217 "a2.h" +void test91(void); +# 460 "a2.h" +void test92(void); +# 52 "a4.c" 2 +void test93(void); +# 1 "a80.c" 1 +void test94(void); +# 1 "a1.h" 1 +void test95(void); +# 370 "a1.h" +void test96(void); +# 37 "a80.c" 2 +void test97(void); +# 53 "a4.c" 2 +void test98(void); +# 1 "a6.h" 1 +void test99(void); +# 135 "a6.h" +void test100(void); +# 150 "a6.h" +void test101(void); +# 1 "a81.h" 1 +void test102(void); +# 154 "a6.h" 2 +void test103(void); +# 1 "a84_a10.h" 1 +void test104(void); +# 155 "a6.h" 2 +void test105(void); +# 1 "a89.h" 1 +void test106(void); +# 156 "a6.h" 2 +void test107(void); +# 1 "a88.h" 1 +void test108(void); +# 122 "a88.h" +void test109(void); +# 248 "a88.h" +void test110(void); +# 294 "a88.h" +void test111(void); +# 339 "a88.h" +void test112(void); +# 157 "a6.h" 2 +void test113(void); +# 1 "a90.h" 1 +void test114(void); +# 158 "a6.h" 2 +void test115(void); +# 1 "a90_a91.h" 1 +void test116(void); +# 159 "a6.h" 2 +void test117(void); +# 1 "a8.h" 1 +void test118(void); +# 160 "a6.h" 2 +void test119(void); +# 1 "a10.h" 1 +void test120(void); +# 161 "a6.h" 2 +void test121(void); +# 1 "a9.h" 1 +void test122(void); +# 162 "a6.h" 2 +void test123(void); +# 186 "a6.h" +void test124(void); +# 219 "a6.h" +void test125(void); +# 54 "a4.c" 2 +void test126(void); +# 1 "a5.h" 1 +void test127(void); +# 1 "a7.h" 1 +void test128(void); +# 52 "a5.h" 2 +void test129(void); +# 55 "a4.c" 2 +void test130(void); +main() +{ + if (! L'\400' != 0); +} + diff --git a/tests-gnu/test75.out b/tests-gnu/test75.out new file mode 100644 index 0000000..5c62c6c --- /dev/null +++ b/tests-gnu/test75.out @@ -0,0 +1,267 @@ +# 1 "a4.c" +void test0(void); +# 1 "a1.h" 1 +void test1(void); +# 1 "a11.h" 1 +void test2(void); +# 856 "a11.h" +void test3(void); +# 105 "a1.h" 2 +void test4(void); +# 1 "a13.h" 1 +void test5(void); +# 1 "a14.h" 1 +void test6(void); +# 1 "a18.h" 1 +void test7(void); +# 63 "a14.h" 2 +void test8(void); +# 133 "a13.h" 2 +void test9(void); +# 1 "a16.h" 1 +void test10(void); +# 1 "a15.h" 1 +void test11(void); +# 251 "a15.h" +void test12(void); +# 465 "a15.h" +void test13(void); +# 484 "a15.h" +void test14(void); +# 755 "a15.h" +void test15(void); +# 911 "a15.h" +void test16(void); +# 1388 "a15.h" +void test17(void); +# 1408 "a15.h" +void test18(void); +# 32 "a16.h" 2 +void test19(void); +# 229 "a13.h" 2 +void test20(void); +# 121 "a1.h" 2 +void test21(void); +# 1 "a20.h" 1 +void test22(void); +# 132 "a1.h" 2 +void test23(void); +# 1 "a999.h" 1 +void test24(void); +# 311 "a1.h" 2 +void test25(void); +# 1 "a100.h" 1 +void test26(void); +# 355 "a1.h" 2 +void test27(void); +# 1 "a30.h" 1 +void test28(void); +# 356 "a1.h" 2 +void test29(void); +# 1 "a99.h" 1 +void test30(void); +# 357 "a1.h" 2 +void test31(void); +# 1 "a32.h" 1 +void test32(void); +# 1 "a31.h" 1 +void test33(void); +# 25 "a32.h" 2 +void test34(void); +# 1 "a35.h" 1 +void test35(void); +# 33 "a32.h" 2 +void test36(void); +# 366 "a1.h" 2 +void test37(void); +# 1 "version.h" 1 +void test38(void); +# 367 "a1.h" 2 +void test39(void); +# 50 "a4.c" 2 +void test40(void); +# 1 "a3.h" 1 +void test41(void); +# 1 "a12_a11.h" 1 +void test42(void); +# 1 "a40.h" 1 +void test43(void); +# 15 "a12_a11.h" 2 +void test44(void); +# 1 "a42.h" 1 +void test45(void); +# 16 "a12_a11.h" 2 +void test46(void); +# 1 "a43.h" 1 +void test47(void); +# 1 "a44.h" 1 +void test48(void); +# 341 "a43.h" 2 +void test49(void); +# 17 "a12_a11.h" 2 +void test50(void); +# 1 "a12.h" 1 +void test51(void); +# 1 "a47.h" 1 +void test52(void); +# 301 "a12.h" 2 +void test53(void); +# 18 "a12_a11.h" 2 +void test54(void); +# 1 "a60.h" 1 +void test55(void); +# 20 "a12_a11.h" 2 +void test56(void); +# 1121 "a12_a11.h" +void test57(void); +# 1205 "a12_a11.h" +void test58(void); +# 1680 "a12_a11.h" +void test59(void); +# 1804 "a12_a11.h" +void test60(void); +# 1864 "a12_a11.h" +void test61(void); +# 871 "a3.h" 2 +void test62(void); +# 900 "a3.h" +void test63(void); +# 1226 "a3.h" +void test64(void); +# 1576 "a3.h" +void test65(void); +# 1737 "a3.h" +void test66(void); +# 1802 "a3.h" +void test67(void); +# 1947 "a3.h" +void test68(void); +# 1997 "a3.h" +void test69(void); +# 2074 "a3.h" +void test70(void); +# 2333 "a3.h" +void test71(void); +# 2528 "a3.h" +void test72(void); +# 2766 "a3.h" +void test73(void); +# 3120 "a3.h" +void test74(void); +# 3221 "a3.h" +void test75(void); +# 3244 "a3.h" +void test76(void); +# 3267 "a3.h" +void test77(void); +# 3298 "a3.h" +void test78(void); +# 3310 "a3.h" +void test79(void); +# 3332 "a3.h" +void test80(void); +# 3424 "a3.h" +void test81(void); +# 3551 "a3.h" +void test82(void); +# 3573 "a3.h" +void test83(void); +# 3738 "a3.h" +void test84(void); +# 3810 "a3.h" +void test85(void); +# 4017 "a3.h" +void test86(void); +# 4117 "a3.h" +void test87(void); +# 4131 "a3.h" +void test88(void); +# 51 "a4.c" 2 +void test89(void); +# 1 "a2.h" 1 +void test90(void); +# 217 "a2.h" +void test91(void); +# 460 "a2.h" +void test92(void); +# 52 "a4.c" 2 +void test93(void); +# 1 "a80.c" 1 +void test94(void); +# 1 "a1.h" 1 +void test95(void); +# 370 "a1.h" +void test96(void); +# 37 "a80.c" 2 +void test97(void); +# 53 "a4.c" 2 +void test98(void); +# 1 "a6.h" 1 +void test99(void); +# 135 "a6.h" +void test100(void); +# 150 "a6.h" +void test101(void); +# 1 "a81.h" 1 +void test102(void); +# 154 "a6.h" 2 +void test103(void); +# 1 "a84_a10.h" 1 +void test104(void); +# 155 "a6.h" 2 +void test105(void); +# 1 "a89.h" 1 +void test106(void); +# 156 "a6.h" 2 +void test107(void); +# 1 "a88.h" 1 +void test108(void); +# 122 "a88.h" +void test109(void); +# 248 "a88.h" +void test110(void); +# 294 "a88.h" +void test111(void); +# 339 "a88.h" +void test112(void); +# 157 "a6.h" 2 +void test113(void); +# 1 "a90.h" 1 +void test114(void); +# 158 "a6.h" 2 +void test115(void); +# 1 "a90_a91.h" 1 +void test116(void); +# 159 "a6.h" 2 +void test117(void); +# 1 "a8.h" 1 +void test118(void); +# 160 "a6.h" 2 +void test119(void); +# 1 "a10.h" 1 +void test120(void); +# 161 "a6.h" 2 +void test121(void); +# 1 "a9.h" 1 +void test122(void); +# 162 "a6.h" 2 +void test123(void); +# 186 "a6.h" +void test124(void); +# 219 "a6.h" +void test125(void); +# 54 "a4.c" 2 +void test126(void); +# 1 "a5.h" 1 +void test127(void); +# 1 "a7.h" 1 +void test128(void); +# 52 "a5.h" 2 +void test129(void); +# 55 "a4.c" 2 +void test130(void); +main() +{ + if (! L'\400' != 0); +} + diff --git a/tests-gnu/test76.c b/tests-gnu/test76.c new file mode 100644 index 0000000..0120f85 --- /dev/null +++ b/tests-gnu/test76.c @@ -0,0 +1,525 @@ +# 1 "a4.c" +void test0(void); +void test1(void); +a=b+c; +# 1 "a1.h" 1 +void test2(void); +void test3(void); +a=b+c; +# 1 "a11.h" 1 +void test4(void); +void test5(void); +a=b+c; +# 856 "a11.h" +void test6(void); +void test7(void); +a=b+c; +# 105 "a1.h" 2 +void test8(void); +void test9(void); +a=b+c; +# 1 "a13.h" 1 +void test10(void); +void test11(void); +a=b+c; +# 1 "a14.h" 1 +void test12(void); +void test13(void); +a=b+c; +# 1 "a18.h" 1 +void test14(void); +void test15(void); +a=b+c; +# 63 "a14.h" 2 +void test16(void); +void test17(void); +a=b+c; +# 133 "a13.h" 2 +void test18(void); +void test19(void); +a=b+c; +# 1 "a16.h" 1 +void test20(void); +void test21(void); +a=b+c; +# 1 "a15.h" 1 +void test22(void); +void test23(void); +a=b+c; +# 251 "a15.h" +void test24(void); +void test25(void); +a=b+c; +# 465 "a15.h" +void test26(void); +void test27(void); +a=b+c; +# 484 "a15.h" +void test28(void); +void test29(void); +a=b+c; +# 755 "a15.h" +void test30(void); +void test31(void); +a=b+c; +# 911 "a15.h" +void test32(void); +void test33(void); +a=b+c; +# 1388 "a15.h" +void test34(void); +void test35(void); +a=b+c; +# 1408 "a15.h" +void test36(void); +void test37(void); +a=b+c; +# 32 "a16.h" 2 +void test38(void); +void test39(void); +a=b+c; +# 229 "a13.h" 2 +void test40(void); +void test41(void); +a=b+c; +# 121 "a1.h" 2 +void test42(void); +void test43(void); +a=b+c; +# 1 "a20.h" 1 +void test44(void); +void test45(void); +a=b+c; +# 132 "a1.h" 2 +void test46(void); +void test47(void); +a=b+c; +# 1 "a999.h" 1 +void test48(void); +void test49(void); +a=b+c; +# 311 "a1.h" 2 +void test50(void); +void test51(void); +a=b+c; +# 1 "a100.h" 1 +void test52(void); +void test53(void); +a=b+c; +# 355 "a1.h" 2 +void test54(void); +void test55(void); +a=b+c; +# 1 "a30.h" 1 +void test56(void); +void test57(void); +a=b+c; +# 356 "a1.h" 2 +void test58(void); +void test59(void); +a=b+c; +# 1 "a99.h" 1 +void test60(void); +void test61(void); +a=b+c; +# 357 "a1.h" 2 +void test62(void); +void test63(void); +a=b+c; +# 1 "a32.h" 1 +void test64(void); +void test65(void); +a=b+c; +# 1 "a31.h" 1 +void test66(void); +void test67(void); +a=b+c; +# 25 "a32.h" 2 +void test68(void); +void test69(void); +a=b+c; +# 1 "a35.h" 1 +void test70(void); +void test71(void); +a=b+c; +# 33 "a32.h" 2 +void test72(void); +void test73(void); +a=b+c; +# 366 "a1.h" 2 +void test74(void); +void test75(void); +a=b+c; +# 1 "version.h" 1 +void test76(void); +void test77(void); +a=b+c; +# 367 "a1.h" 2 +void test78(void); +void test79(void); +a=b+c; +# 50 "a4.c" 2 +void test80(void); +void test81(void); +a=b+c; +# 1 "a3.h" 1 +void test82(void); +void test83(void); +a=b+c; +# 1 "a12_a11.h" 1 +void test84(void); +void test85(void); +a=b+c; +# 1 "a40.h" 1 +void test86(void); +void test87(void); +a=b+c; +# 15 "a12_a11.h" 2 +void test88(void); +void test89(void); +a=b+c; +# 1 "a42.h" 1 +void test90(void); +void test91(void); +a=b+c; +# 16 "a12_a11.h" 2 +void test92(void); +void test93(void); +a=b+c; +# 1 "a43.h" 1 +void test94(void); +void test95(void); +a=b+c; +# 1 "a44.h" 1 +void test96(void); +void test97(void); +a=b+c; +# 341 "a43.h" 2 +void test98(void); +void test99(void); +a=b+c; +# 17 "a12_a11.h" 2 +void test100(void); +void test101(void); +a=b+c; +# 1 "a12.h" 1 +void test102(void); +void test103(void); +a=b+c; +# 1 "a47.h" 1 +void test104(void); +void test105(void); +a=b+c; +# 301 "a12.h" 2 +void test106(void); +void test107(void); +a=b+c; +# 18 "a12_a11.h" 2 +void test108(void); +void test109(void); +a=b+c; +# 1 "a60.h" 1 +void test110(void); +void test111(void); +a=b+c; +# 20 "a12_a11.h" 2 +void test112(void); +void test113(void); +a=b+c; +# 1121 "a12_a11.h" +void test114(void); +void test115(void); +a=b+c; +# 1205 "a12_a11.h" +void test116(void); +void test117(void); +a=b+c; +# 1680 "a12_a11.h" +void test118(void); +void test119(void); +a=b+c; +# 1804 "a12_a11.h" +void test120(void); +void test121(void); +a=b+c; +# 1864 "a12_a11.h" +void test122(void); +void test123(void); +a=b+c; +# 871 "a3.h" 2 +void test124(void); +void test125(void); +a=b+c; +# 900 "a3.h" +void test126(void); +void test127(void); +a=b+c; +# 1226 "a3.h" +void test128(void); +void test129(void); +a=b+c; +# 1576 "a3.h" +void test130(void); +void test131(void); +a=b+c; +# 1737 "a3.h" +void test132(void); +void test133(void); +a=b+c; +# 1802 "a3.h" +void test134(void); +void test135(void); +a=b+c; +# 1947 "a3.h" +void test136(void); +void test137(void); +a=b+c; +# 1997 "a3.h" +void test138(void); +void test139(void); +a=b+c; +# 2074 "a3.h" +void test140(void); +void test141(void); +a=b+c; +# 2333 "a3.h" +void test142(void); +void test143(void); +a=b+c; +# 2528 "a3.h" +void test144(void); +void test145(void); +a=b+c; +# 2766 "a3.h" +void test146(void); +void test147(void); +a=b+c; +# 3120 "a3.h" +void test148(void); +void test149(void); +a=b+c; +# 3221 "a3.h" +void test150(void); +void test151(void); +a=b+c; +# 3244 "a3.h" +void test152(void); +void test153(void); +a=b+c; +# 3267 "a3.h" +void test154(void); +void test155(void); +a=b+c; +# 3298 "a3.h" +void test156(void); +void test157(void); +a=b+c; +# 3310 "a3.h" +void test158(void); +void test159(void); +a=b+c; +# 3332 "a3.h" +void test160(void); +void test161(void); +a=b+c; +# 3424 "a3.h" +void test162(void); +void test163(void); +a=b+c; +# 3551 "a3.h" +void test164(void); +void test165(void); +a=b+c; +# 3573 "a3.h" +void test166(void); +void test167(void); +a=b+c; +# 3738 "a3.h" +void test168(void); +void test169(void); +a=b+c; +# 3810 "a3.h" +void test170(void); +void test171(void); +a=b+c; +# 4017 "a3.h" +void test172(void); +void test173(void); +a=b+c; +# 4117 "a3.h" +void test174(void); +void test175(void); +a=b+c; +# 4131 "a3.h" +void test176(void); +void test177(void); +a=b+c; +# 51 "a4.c" 2 +void test178(void); +void test179(void); +a=b+c; +# 1 "a2.h" 1 +void test180(void); +void test181(void); +a=b+c; +# 217 "a2.h" +void test182(void); +void test183(void); +a=b+c; +# 460 "a2.h" +void test184(void); +void test185(void); +a=b+c; +# 52 "a4.c" 2 +void test186(void); +void test187(void); +a=b+c; +# 1 "a80.c" 1 +void test188(void); +void test189(void); +a=b+c; +# 1 "a1.h" 1 +void test190(void); +void test191(void); +a=b+c; +# 370 "a1.h" +void test192(void); +void test193(void); +a=b+c; +# 37 "a80.c" 2 +void test194(void); +void test195(void); +a=b+c; +# 53 "a4.c" 2 +void test196(void); +void test197(void); +a=b+c; +# 1 "a6.h" 1 +void test198(void); +void test199(void); +a=b+c; +# 135 "a6.h" +void test200(void); +void test201(void); +a=b+c; +# 150 "a6.h" +void test202(void); +void test203(void); +a=b+c; +# 1 "a81.h" 1 +void test204(void); +void test205(void); +a=b+c; +# 154 "a6.h" 2 +void test206(void); +void test207(void); +a=b+c; +# 1 "a84_a10.h" 1 +void test208(void); +void test209(void); +a=b+c; +# 155 "a6.h" 2 +void test210(void); +void test211(void); +a=b+c; +# 1 "a89.h" 1 +void test212(void); +void test213(void); +a=b+c; +# 156 "a6.h" 2 +void test214(void); +void test215(void); +a=b+c; +# 1 "a88.h" 1 +void test216(void); +void test217(void); +a=b+c; +# 122 "a88.h" +void test218(void); +void test219(void); +a=b+c; +# 248 "a88.h" +void test220(void); +void test221(void); +a=b+c; +# 294 "a88.h" +void test222(void); +void test223(void); +a=b+c; +# 339 "a88.h" +void test224(void); +void test225(void); +a=b+c; +# 157 "a6.h" 2 +void test226(void); +void test227(void); +a=b+c; +# 1 "a90.h" 1 +void test228(void); +void test229(void); +a=b+c; +# 158 "a6.h" 2 +void test230(void); +void test231(void); +a=b+c; +# 1 "a90_a91.h" 1 +void test232(void); +void test233(void); +a=b+c; +# 159 "a6.h" 2 +void test234(void); +void test235(void); +a=b+c; +# 1 "a8.h" 1 +void test236(void); +void test237(void); +a=b+c; +# 160 "a6.h" 2 +void test238(void); +void test239(void); +a=b+c; +# 1 "a10.h" 1 +void test240(void); +void test241(void); +a=b+c; +# 161 "a6.h" 2 +void test242(void); +void test243(void); +a=b+c; +# 1 "a9.h" 1 +void test244(void); +void test245(void); +a=b+c; +# 162 "a6.h" 2 +void test246(void); +void test247(void); +a=b+c; +# 186 "a6.h" +void test248(void); +void test249(void); +a=b+c; +# 219 "a6.h" +void test250(void); +void test251(void); +a=b+c; +# 54 "a4.c" 2 +void test252(void); +void test253(void); +a=b+c; +# 1 "a5.h" 1 +void test254(void); +void test255(void); +a=b+c; +# 1 "a7.h" 1 +void test256(void); +void test257(void); +a=b+c; +# 52 "a5.h" 2 +void test258(void); +void test259(void); +a=b+c; +# 55 "a4.c" 2 +void test260(void); +void test261(void); +a=b+c; + diff --git a/tests-gnu/test76.out b/tests-gnu/test76.out new file mode 100644 index 0000000..0120f85 --- /dev/null +++ b/tests-gnu/test76.out @@ -0,0 +1,525 @@ +# 1 "a4.c" +void test0(void); +void test1(void); +a=b+c; +# 1 "a1.h" 1 +void test2(void); +void test3(void); +a=b+c; +# 1 "a11.h" 1 +void test4(void); +void test5(void); +a=b+c; +# 856 "a11.h" +void test6(void); +void test7(void); +a=b+c; +# 105 "a1.h" 2 +void test8(void); +void test9(void); +a=b+c; +# 1 "a13.h" 1 +void test10(void); +void test11(void); +a=b+c; +# 1 "a14.h" 1 +void test12(void); +void test13(void); +a=b+c; +# 1 "a18.h" 1 +void test14(void); +void test15(void); +a=b+c; +# 63 "a14.h" 2 +void test16(void); +void test17(void); +a=b+c; +# 133 "a13.h" 2 +void test18(void); +void test19(void); +a=b+c; +# 1 "a16.h" 1 +void test20(void); +void test21(void); +a=b+c; +# 1 "a15.h" 1 +void test22(void); +void test23(void); +a=b+c; +# 251 "a15.h" +void test24(void); +void test25(void); +a=b+c; +# 465 "a15.h" +void test26(void); +void test27(void); +a=b+c; +# 484 "a15.h" +void test28(void); +void test29(void); +a=b+c; +# 755 "a15.h" +void test30(void); +void test31(void); +a=b+c; +# 911 "a15.h" +void test32(void); +void test33(void); +a=b+c; +# 1388 "a15.h" +void test34(void); +void test35(void); +a=b+c; +# 1408 "a15.h" +void test36(void); +void test37(void); +a=b+c; +# 32 "a16.h" 2 +void test38(void); +void test39(void); +a=b+c; +# 229 "a13.h" 2 +void test40(void); +void test41(void); +a=b+c; +# 121 "a1.h" 2 +void test42(void); +void test43(void); +a=b+c; +# 1 "a20.h" 1 +void test44(void); +void test45(void); +a=b+c; +# 132 "a1.h" 2 +void test46(void); +void test47(void); +a=b+c; +# 1 "a999.h" 1 +void test48(void); +void test49(void); +a=b+c; +# 311 "a1.h" 2 +void test50(void); +void test51(void); +a=b+c; +# 1 "a100.h" 1 +void test52(void); +void test53(void); +a=b+c; +# 355 "a1.h" 2 +void test54(void); +void test55(void); +a=b+c; +# 1 "a30.h" 1 +void test56(void); +void test57(void); +a=b+c; +# 356 "a1.h" 2 +void test58(void); +void test59(void); +a=b+c; +# 1 "a99.h" 1 +void test60(void); +void test61(void); +a=b+c; +# 357 "a1.h" 2 +void test62(void); +void test63(void); +a=b+c; +# 1 "a32.h" 1 +void test64(void); +void test65(void); +a=b+c; +# 1 "a31.h" 1 +void test66(void); +void test67(void); +a=b+c; +# 25 "a32.h" 2 +void test68(void); +void test69(void); +a=b+c; +# 1 "a35.h" 1 +void test70(void); +void test71(void); +a=b+c; +# 33 "a32.h" 2 +void test72(void); +void test73(void); +a=b+c; +# 366 "a1.h" 2 +void test74(void); +void test75(void); +a=b+c; +# 1 "version.h" 1 +void test76(void); +void test77(void); +a=b+c; +# 367 "a1.h" 2 +void test78(void); +void test79(void); +a=b+c; +# 50 "a4.c" 2 +void test80(void); +void test81(void); +a=b+c; +# 1 "a3.h" 1 +void test82(void); +void test83(void); +a=b+c; +# 1 "a12_a11.h" 1 +void test84(void); +void test85(void); +a=b+c; +# 1 "a40.h" 1 +void test86(void); +void test87(void); +a=b+c; +# 15 "a12_a11.h" 2 +void test88(void); +void test89(void); +a=b+c; +# 1 "a42.h" 1 +void test90(void); +void test91(void); +a=b+c; +# 16 "a12_a11.h" 2 +void test92(void); +void test93(void); +a=b+c; +# 1 "a43.h" 1 +void test94(void); +void test95(void); +a=b+c; +# 1 "a44.h" 1 +void test96(void); +void test97(void); +a=b+c; +# 341 "a43.h" 2 +void test98(void); +void test99(void); +a=b+c; +# 17 "a12_a11.h" 2 +void test100(void); +void test101(void); +a=b+c; +# 1 "a12.h" 1 +void test102(void); +void test103(void); +a=b+c; +# 1 "a47.h" 1 +void test104(void); +void test105(void); +a=b+c; +# 301 "a12.h" 2 +void test106(void); +void test107(void); +a=b+c; +# 18 "a12_a11.h" 2 +void test108(void); +void test109(void); +a=b+c; +# 1 "a60.h" 1 +void test110(void); +void test111(void); +a=b+c; +# 20 "a12_a11.h" 2 +void test112(void); +void test113(void); +a=b+c; +# 1121 "a12_a11.h" +void test114(void); +void test115(void); +a=b+c; +# 1205 "a12_a11.h" +void test116(void); +void test117(void); +a=b+c; +# 1680 "a12_a11.h" +void test118(void); +void test119(void); +a=b+c; +# 1804 "a12_a11.h" +void test120(void); +void test121(void); +a=b+c; +# 1864 "a12_a11.h" +void test122(void); +void test123(void); +a=b+c; +# 871 "a3.h" 2 +void test124(void); +void test125(void); +a=b+c; +# 900 "a3.h" +void test126(void); +void test127(void); +a=b+c; +# 1226 "a3.h" +void test128(void); +void test129(void); +a=b+c; +# 1576 "a3.h" +void test130(void); +void test131(void); +a=b+c; +# 1737 "a3.h" +void test132(void); +void test133(void); +a=b+c; +# 1802 "a3.h" +void test134(void); +void test135(void); +a=b+c; +# 1947 "a3.h" +void test136(void); +void test137(void); +a=b+c; +# 1997 "a3.h" +void test138(void); +void test139(void); +a=b+c; +# 2074 "a3.h" +void test140(void); +void test141(void); +a=b+c; +# 2333 "a3.h" +void test142(void); +void test143(void); +a=b+c; +# 2528 "a3.h" +void test144(void); +void test145(void); +a=b+c; +# 2766 "a3.h" +void test146(void); +void test147(void); +a=b+c; +# 3120 "a3.h" +void test148(void); +void test149(void); +a=b+c; +# 3221 "a3.h" +void test150(void); +void test151(void); +a=b+c; +# 3244 "a3.h" +void test152(void); +void test153(void); +a=b+c; +# 3267 "a3.h" +void test154(void); +void test155(void); +a=b+c; +# 3298 "a3.h" +void test156(void); +void test157(void); +a=b+c; +# 3310 "a3.h" +void test158(void); +void test159(void); +a=b+c; +# 3332 "a3.h" +void test160(void); +void test161(void); +a=b+c; +# 3424 "a3.h" +void test162(void); +void test163(void); +a=b+c; +# 3551 "a3.h" +void test164(void); +void test165(void); +a=b+c; +# 3573 "a3.h" +void test166(void); +void test167(void); +a=b+c; +# 3738 "a3.h" +void test168(void); +void test169(void); +a=b+c; +# 3810 "a3.h" +void test170(void); +void test171(void); +a=b+c; +# 4017 "a3.h" +void test172(void); +void test173(void); +a=b+c; +# 4117 "a3.h" +void test174(void); +void test175(void); +a=b+c; +# 4131 "a3.h" +void test176(void); +void test177(void); +a=b+c; +# 51 "a4.c" 2 +void test178(void); +void test179(void); +a=b+c; +# 1 "a2.h" 1 +void test180(void); +void test181(void); +a=b+c; +# 217 "a2.h" +void test182(void); +void test183(void); +a=b+c; +# 460 "a2.h" +void test184(void); +void test185(void); +a=b+c; +# 52 "a4.c" 2 +void test186(void); +void test187(void); +a=b+c; +# 1 "a80.c" 1 +void test188(void); +void test189(void); +a=b+c; +# 1 "a1.h" 1 +void test190(void); +void test191(void); +a=b+c; +# 370 "a1.h" +void test192(void); +void test193(void); +a=b+c; +# 37 "a80.c" 2 +void test194(void); +void test195(void); +a=b+c; +# 53 "a4.c" 2 +void test196(void); +void test197(void); +a=b+c; +# 1 "a6.h" 1 +void test198(void); +void test199(void); +a=b+c; +# 135 "a6.h" +void test200(void); +void test201(void); +a=b+c; +# 150 "a6.h" +void test202(void); +void test203(void); +a=b+c; +# 1 "a81.h" 1 +void test204(void); +void test205(void); +a=b+c; +# 154 "a6.h" 2 +void test206(void); +void test207(void); +a=b+c; +# 1 "a84_a10.h" 1 +void test208(void); +void test209(void); +a=b+c; +# 155 "a6.h" 2 +void test210(void); +void test211(void); +a=b+c; +# 1 "a89.h" 1 +void test212(void); +void test213(void); +a=b+c; +# 156 "a6.h" 2 +void test214(void); +void test215(void); +a=b+c; +# 1 "a88.h" 1 +void test216(void); +void test217(void); +a=b+c; +# 122 "a88.h" +void test218(void); +void test219(void); +a=b+c; +# 248 "a88.h" +void test220(void); +void test221(void); +a=b+c; +# 294 "a88.h" +void test222(void); +void test223(void); +a=b+c; +# 339 "a88.h" +void test224(void); +void test225(void); +a=b+c; +# 157 "a6.h" 2 +void test226(void); +void test227(void); +a=b+c; +# 1 "a90.h" 1 +void test228(void); +void test229(void); +a=b+c; +# 158 "a6.h" 2 +void test230(void); +void test231(void); +a=b+c; +# 1 "a90_a91.h" 1 +void test232(void); +void test233(void); +a=b+c; +# 159 "a6.h" 2 +void test234(void); +void test235(void); +a=b+c; +# 1 "a8.h" 1 +void test236(void); +void test237(void); +a=b+c; +# 160 "a6.h" 2 +void test238(void); +void test239(void); +a=b+c; +# 1 "a10.h" 1 +void test240(void); +void test241(void); +a=b+c; +# 161 "a6.h" 2 +void test242(void); +void test243(void); +a=b+c; +# 1 "a9.h" 1 +void test244(void); +void test245(void); +a=b+c; +# 162 "a6.h" 2 +void test246(void); +void test247(void); +a=b+c; +# 186 "a6.h" +void test248(void); +void test249(void); +a=b+c; +# 219 "a6.h" +void test250(void); +void test251(void); +a=b+c; +# 54 "a4.c" 2 +void test252(void); +void test253(void); +a=b+c; +# 1 "a5.h" 1 +void test254(void); +void test255(void); +a=b+c; +# 1 "a7.h" 1 +void test256(void); +void test257(void); +a=b+c; +# 52 "a5.h" 2 +void test258(void); +void test259(void); +a=b+c; +# 55 "a4.c" 2 +void test260(void); +void test261(void); +a=b+c; + diff --git a/tests-gnu/test81.c b/tests-gnu/test81.c new file mode 100644 index 0000000..259ab88 --- /dev/null +++ b/tests-gnu/test81.c @@ -0,0 +1,11 @@ +# 1 "930927-1.c" +# 1 "/sw/packages/cygnus/progressive-97r1/sparc-sun-solaris2.5.1/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7-97r1/include/stddef.h" 1 3 +# 61 "/sw/packages/cygnus/progressive-97r1/sparc-sun-solaris2.5.1/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7-97r1/include/stddef.h" 3 +typedef int ptrdiff_t; +typedef unsigned int size_t; +typedef long int wchar_t; +typedef unsigned int wint_t; +# 302 "/sw/packages/cygnus/progressive-97r1/sparc-sun-solaris2.5.1/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7-97r1/include/stddef.h" 3 +# 1 "930927-1.c" 2 +wchar_t s[5] = L"abcd"; + diff --git a/tests-gnu/test81.out b/tests-gnu/test81.out new file mode 100644 index 0000000..259ab88 --- /dev/null +++ b/tests-gnu/test81.out @@ -0,0 +1,11 @@ +# 1 "930927-1.c" +# 1 "/sw/packages/cygnus/progressive-97r1/sparc-sun-solaris2.5.1/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7-97r1/include/stddef.h" 1 3 +# 61 "/sw/packages/cygnus/progressive-97r1/sparc-sun-solaris2.5.1/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7-97r1/include/stddef.h" 3 +typedef int ptrdiff_t; +typedef unsigned int size_t; +typedef long int wchar_t; +typedef unsigned int wint_t; +# 302 "/sw/packages/cygnus/progressive-97r1/sparc-sun-solaris2.5.1/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7-97r1/include/stddef.h" 3 +# 1 "930927-1.c" 2 +wchar_t s[5] = L"abcd"; + diff --git a/tests-gnu/test83.c b/tests-gnu/test83.c new file mode 100644 index 0000000..e223ce2 --- /dev/null +++ b/tests-gnu/test83.c @@ -0,0 +1,4 @@ +main() +{ + if (! L'\400' != 0); +} diff --git a/tests-gnu/test83.out b/tests-gnu/test83.out new file mode 100644 index 0000000..e223ce2 --- /dev/null +++ b/tests-gnu/test83.out @@ -0,0 +1,4 @@ +main() +{ + if (! L'\400' != 0); +} diff --git a/tests-gnu/test85.c b/tests-gnu/test85.c new file mode 100644 index 0000000..2c707f5 --- /dev/null +++ b/tests-gnu/test85.c @@ -0,0 +1,524 @@ +# 1 "a4.c" +void test0(void); +void test1(void); +a=b+c; +# 1 "a1.h" 1 +void test2(void); +void test3(void); +a=b+c; +# 1 "a11.h" 1 +void test4(void); +void test5(void); +a=b+c; +# 856 "a11.h" +void test6(void); +void test7(void); +a=b+c; +# 105 "a1.h" 2 +void test8(void); +void test9(void); +a=b+c; +# 1 "a13.h" 1 +void test10(void); +void test11(void); +a=b+c; +# 1 "a14.h" 1 +void test12(void); +void test13(void); +a=b+c; +# 1 "a18.h" 1 +void test14(void); +void test15(void); +a=b+c; +# 63 "a14.h" 2 +void test16(void); +void test17(void); +a=b+c; +# 133 "a13.h" 2 +void test18(void); +void test19(void); +a=b+c; +# 1 "a16.h" 1 +void test20(void); +void test21(void); +a=b+c; +# 1 "a15.h" 1 +void test22(void); +void test23(void); +a=b+c; +# 251 "a15.h" +void test24(void); +void test25(void); +a=b+c; +# 465 "a15.h" +void test26(void); +void test27(void); +a=b+c; +# 484 "a15.h" +void test28(void); +void test29(void); +a=b+c; +# 755 "a15.h" +void test30(void); +void test31(void); +a=b+c; +# 911 "a15.h" +void test32(void); +void test33(void); +a=b+c; +# 1388 "a15.h" +void test34(void); +void test35(void); +a=b+c; +# 1408 "a15.h" +void test36(void); +void test37(void); +a=b+c; +# 32 "a16.h" 2 +void test38(void); +void test39(void); +a=b+c; +# 229 "a13.h" 2 +void test40(void); +void test41(void); +a=b+c; +# 121 "a1.h" 2 +void test42(void); +void test43(void); +a=b+c; +# 1 "a20.h" 1 +void test44(void); +void test45(void); +a=b+c; +# 132 "a1.h" 2 +void test46(void); +void test47(void); +a=b+c; +# 1 "a999.h" 1 +void test48(void); +void test49(void); +a=b+c; +# 311 "a1.h" 2 +void test50(void); +void test51(void); +a=b+c; +# 1 "a100.h" 1 +void test52(void); +void test53(void); +a=b+c; +# 355 "a1.h" 2 +void test54(void); +void test55(void); +a=b+c; +# 1 "a30.h" 1 +void test56(void); +void test57(void); +a=b+c; +# 356 "a1.h" 2 +void test58(void); +void test59(void); +a=b+c; +# 1 "a99.h" 1 +void test60(void); +void test61(void); +a=b+c; +# 357 "a1.h" 2 +void test62(void); +void test63(void); +a=b+c; +# 1 "a32.h" 1 +void test64(void); +void test65(void); +a=b+c; +# 1 "a31.h" 1 +void test66(void); +void test67(void); +a=b+c; +# 25 "a32.h" 2 +void test68(void); +void test69(void); +a=b+c; +# 1 "a35.h" 1 +void test70(void); +void test71(void); +a=b+c; +# 33 "a32.h" 2 +void test72(void); +void test73(void); +a=b+c; +# 366 "a1.h" 2 +void test74(void); +void test75(void); +a=b+c; +# 1 "version.h" 1 +void test76(void); +void test77(void); +a=b+c; +# 367 "a1.h" 2 +void test78(void); +void test79(void); +a=b+c; +# 50 "a4.c" 2 +void test80(void); +void test81(void); +a=b+c; +# 1 "a3.h" 1 +void test82(void); +void test83(void); +a=b+c; +# 1 "a12_a11.h" 1 +void test84(void); +void test85(void); +a=b+c; +# 1 "a40.h" 1 +void test86(void); +void test87(void); +a=b+c; +# 15 "a12_a11.h" 2 +void test88(void); +void test89(void); +a=b+c; +# 1 "a42.h" 1 +void test90(void); +void test91(void); +a=b+c; +# 16 "a12_a11.h" 2 +void test92(void); +void test93(void); +a=b+c; +# 1 "a43.h" 1 +void test94(void); +void test95(void); +a=b+c; +# 1 "a44.h" 1 +void test96(void); +void test97(void); +a=b+c; +# 341 "a43.h" 2 +void test98(void); +void test99(void); +a=b+c; +# 17 "a12_a11.h" 2 +void test100(void); +void test101(void); +a=b+c; +# 1 "a12.h" 1 +void test102(void); +void test103(void); +a=b+c; +# 1 "a47.h" 1 +void test104(void); +void test105(void); +a=b+c; +# 301 "a12.h" 2 +void test106(void); +void test107(void); +a=b+c; +# 18 "a12_a11.h" 2 +void test108(void); +void test109(void); +a=b+c; +# 1 "a60.h" 1 +void test110(void); +void test111(void); +a=b+c; +# 20 "a12_a11.h" 2 +void test112(void); +void test113(void); +a=b+c; +# 1121 "a12_a11.h" +void test114(void); +void test115(void); +a=b+c; +# 1205 "a12_a11.h" +void test116(void); +void test117(void); +a=b+c; +# 1680 "a12_a11.h" +void test118(void); +void test119(void); +a=b+c; +# 1804 "a12_a11.h" +void test120(void); +void test121(void); +a=b+c; +# 1864 "a12_a11.h" +void test122(void); +void test123(void); +a=b+c; +# 871 "a3.h" 2 +void test124(void); +void test125(void); +a=b+c; +# 900 "a3.h" +void test126(void); +void test127(void); +a=b+c; +# 1226 "a3.h" +void test128(void); +void test129(void); +a=b+c; +# 1576 "a3.h" +void test130(void); +void test131(void); +a=b+c; +# 1737 "a3.h" +void test132(void); +void test133(void); +a=b+c; +# 1802 "a3.h" +void test134(void); +void test135(void); +a=b+c; +# 1947 "a3.h" +void test136(void); +void test137(void); +a=b+c; +# 1997 "a3.h" +void test138(void); +void test139(void); +a=b+c; +# 2074 "a3.h" +void test140(void); +void test141(void); +a=b+c; +# 2333 "a3.h" +void test142(void); +void test143(void); +a=b+c; +# 2528 "a3.h" +void test144(void); +void test145(void); +a=b+c; +# 2766 "a3.h" +void test146(void); +void test147(void); +a=b+c; +# 3120 "a3.h" +void test148(void); +void test149(void); +a=b+c; +# 3221 "a3.h" +void test150(void); +void test151(void); +a=b+c; +# 3244 "a3.h" +void test152(void); +void test153(void); +a=b+c; +# 3267 "a3.h" +void test154(void); +void test155(void); +a=b+c; +# 3298 "a3.h" +void test156(void); +void test157(void); +a=b+c; +# 3310 "a3.h" +void test158(void); +void test159(void); +a=b+c; +# 3332 "a3.h" +void test160(void); +void test161(void); +a=b+c; +# 3424 "a3.h" +void test162(void); +void test163(void); +a=b+c; +# 3551 "a3.h" +void test164(void); +void test165(void); +a=b+c; +# 3573 "a3.h" +void test166(void); +void test167(void); +a=b+c; +# 3738 "a3.h" +void test168(void); +void test169(void); +a=b+c; +# 3810 "a3.h" +void test170(void); +void test171(void); +a=b+c; +# 4017 "a3.h" +void test172(void); +void test173(void); +a=b+c; +# 4117 "a3.h" +void test174(void); +void test175(void); +a=b+c; +# 4131 "a3.h" +void test176(void); +void test177(void); +a=b+c; +# 51 "a4.c" 2 +void test178(void); +void test179(void); +a=b+c; +# 1 "a2.h" 1 +void test180(void); +void test181(void); +a=b+c; +# 217 "a2.h" +void test182(void); +void test183(void); +a=b+c; +# 460 "a2.h" +void test184(void); +void test185(void); +a=b+c; +# 52 "a4.c" 2 +void test186(void); +void test187(void); +a=b+c; +# 1 "a80.c" 1 +void test188(void); +void test189(void); +a=b+c; +# 1 "a1.h" 1 +void test190(void); +void test191(void); +a=b+c; +# 370 "a1.h" +void test192(void); +void test193(void); +a=b+c; +# 37 "a80.c" 2 +void test194(void); +void test195(void); +a=b+c; +# 53 "a4.c" 2 +void test196(void); +void test197(void); +a=b+c; +# 1 "a6.h" 1 +void test198(void); +void test199(void); +a=b+c; +# 135 "a6.h" +void test200(void); +void test201(void); +a=b+c; +# 150 "a6.h" +void test202(void); +void test203(void); +a=b+c; +# 1 "a81.h" 1 +void test204(void); +void test205(void); +a=b+c; +# 154 "a6.h" 2 +void test206(void); +void test207(void); +a=b+c; +# 1 "a84_a10.h" 1 +void test208(void); +void test209(void); +a=b+c; +# 155 "a6.h" 2 +void test210(void); +void test211(void); +a=b+c; +# 1 "a89.h" 1 +void test212(void); +void test213(void); +a=b+c; +# 156 "a6.h" 2 +void test214(void); +void test215(void); +a=b+c; +# 1 "a88.h" 1 +void test216(void); +void test217(void); +a=b+c; +# 122 "a88.h" +void test218(void); +void test219(void); +a=b+c; +# 248 "a88.h" +void test220(void); +void test221(void); +a=b+c; +# 294 "a88.h" +void test222(void); +void test223(void); +a=b+c; +# 339 "a88.h" +void test224(void); +void test225(void); +a=b+c; +# 157 "a6.h" 2 +void test226(void); +void test227(void); +a=b+c; +# 1 "a90.h" 1 +void test228(void); +void test229(void); +a=b+c; +# 158 "a6.h" 2 +void test230(void); +void test231(void); +a=b+c; +# 1 "a90_a91.h" 1 +void test232(void); +void test233(void); +a=b+c; +# 159 "a6.h" 2 +void test234(void); +void test235(void); +a=b+c; +# 1 "a8.h" 1 +void test236(void); +void test237(void); +a=b+c; +# 160 "a6.h" 2 +void test238(void); +void test239(void); +a=b+c; +# 1 "a10.h" 1 +void test240(void); +void test241(void); +a=b+c; +# 161 "a6.h" 2 +void test242(void); +void test243(void); +a=b+c; +# 1 "a9.h" 1 +void test244(void); +void test245(void); +a=b+c; +# 162 "a6.h" 2 +void test246(void); +void test247(void); +a=b+c; +# 186 "a6.h" +void test248(void); +void test249(void); +a=b+c; +# 219 "a6.h" +void test250(void); +void test251(void); +a=b+c; +# 54 "a4.c" 2 +void test252(void); +void test253(void); +a=b+c; +# 1 "a5.h" 1 +void test254(void); +void test255(void); +a=b+c; +# 1 "a7.h" 1 +void test256(void); +void test257(void); +a=b+c; +# 52 "a5.h" 2 +void test258(void); +void test259(void); +a=b+c; +# 55 "a4.c" 2 +void test260(void); +void test261(void); +a=b+c; diff --git a/tests-gnu/test85.out b/tests-gnu/test85.out new file mode 100644 index 0000000..2c707f5 --- /dev/null +++ b/tests-gnu/test85.out @@ -0,0 +1,524 @@ +# 1 "a4.c" +void test0(void); +void test1(void); +a=b+c; +# 1 "a1.h" 1 +void test2(void); +void test3(void); +a=b+c; +# 1 "a11.h" 1 +void test4(void); +void test5(void); +a=b+c; +# 856 "a11.h" +void test6(void); +void test7(void); +a=b+c; +# 105 "a1.h" 2 +void test8(void); +void test9(void); +a=b+c; +# 1 "a13.h" 1 +void test10(void); +void test11(void); +a=b+c; +# 1 "a14.h" 1 +void test12(void); +void test13(void); +a=b+c; +# 1 "a18.h" 1 +void test14(void); +void test15(void); +a=b+c; +# 63 "a14.h" 2 +void test16(void); +void test17(void); +a=b+c; +# 133 "a13.h" 2 +void test18(void); +void test19(void); +a=b+c; +# 1 "a16.h" 1 +void test20(void); +void test21(void); +a=b+c; +# 1 "a15.h" 1 +void test22(void); +void test23(void); +a=b+c; +# 251 "a15.h" +void test24(void); +void test25(void); +a=b+c; +# 465 "a15.h" +void test26(void); +void test27(void); +a=b+c; +# 484 "a15.h" +void test28(void); +void test29(void); +a=b+c; +# 755 "a15.h" +void test30(void); +void test31(void); +a=b+c; +# 911 "a15.h" +void test32(void); +void test33(void); +a=b+c; +# 1388 "a15.h" +void test34(void); +void test35(void); +a=b+c; +# 1408 "a15.h" +void test36(void); +void test37(void); +a=b+c; +# 32 "a16.h" 2 +void test38(void); +void test39(void); +a=b+c; +# 229 "a13.h" 2 +void test40(void); +void test41(void); +a=b+c; +# 121 "a1.h" 2 +void test42(void); +void test43(void); +a=b+c; +# 1 "a20.h" 1 +void test44(void); +void test45(void); +a=b+c; +# 132 "a1.h" 2 +void test46(void); +void test47(void); +a=b+c; +# 1 "a999.h" 1 +void test48(void); +void test49(void); +a=b+c; +# 311 "a1.h" 2 +void test50(void); +void test51(void); +a=b+c; +# 1 "a100.h" 1 +void test52(void); +void test53(void); +a=b+c; +# 355 "a1.h" 2 +void test54(void); +void test55(void); +a=b+c; +# 1 "a30.h" 1 +void test56(void); +void test57(void); +a=b+c; +# 356 "a1.h" 2 +void test58(void); +void test59(void); +a=b+c; +# 1 "a99.h" 1 +void test60(void); +void test61(void); +a=b+c; +# 357 "a1.h" 2 +void test62(void); +void test63(void); +a=b+c; +# 1 "a32.h" 1 +void test64(void); +void test65(void); +a=b+c; +# 1 "a31.h" 1 +void test66(void); +void test67(void); +a=b+c; +# 25 "a32.h" 2 +void test68(void); +void test69(void); +a=b+c; +# 1 "a35.h" 1 +void test70(void); +void test71(void); +a=b+c; +# 33 "a32.h" 2 +void test72(void); +void test73(void); +a=b+c; +# 366 "a1.h" 2 +void test74(void); +void test75(void); +a=b+c; +# 1 "version.h" 1 +void test76(void); +void test77(void); +a=b+c; +# 367 "a1.h" 2 +void test78(void); +void test79(void); +a=b+c; +# 50 "a4.c" 2 +void test80(void); +void test81(void); +a=b+c; +# 1 "a3.h" 1 +void test82(void); +void test83(void); +a=b+c; +# 1 "a12_a11.h" 1 +void test84(void); +void test85(void); +a=b+c; +# 1 "a40.h" 1 +void test86(void); +void test87(void); +a=b+c; +# 15 "a12_a11.h" 2 +void test88(void); +void test89(void); +a=b+c; +# 1 "a42.h" 1 +void test90(void); +void test91(void); +a=b+c; +# 16 "a12_a11.h" 2 +void test92(void); +void test93(void); +a=b+c; +# 1 "a43.h" 1 +void test94(void); +void test95(void); +a=b+c; +# 1 "a44.h" 1 +void test96(void); +void test97(void); +a=b+c; +# 341 "a43.h" 2 +void test98(void); +void test99(void); +a=b+c; +# 17 "a12_a11.h" 2 +void test100(void); +void test101(void); +a=b+c; +# 1 "a12.h" 1 +void test102(void); +void test103(void); +a=b+c; +# 1 "a47.h" 1 +void test104(void); +void test105(void); +a=b+c; +# 301 "a12.h" 2 +void test106(void); +void test107(void); +a=b+c; +# 18 "a12_a11.h" 2 +void test108(void); +void test109(void); +a=b+c; +# 1 "a60.h" 1 +void test110(void); +void test111(void); +a=b+c; +# 20 "a12_a11.h" 2 +void test112(void); +void test113(void); +a=b+c; +# 1121 "a12_a11.h" +void test114(void); +void test115(void); +a=b+c; +# 1205 "a12_a11.h" +void test116(void); +void test117(void); +a=b+c; +# 1680 "a12_a11.h" +void test118(void); +void test119(void); +a=b+c; +# 1804 "a12_a11.h" +void test120(void); +void test121(void); +a=b+c; +# 1864 "a12_a11.h" +void test122(void); +void test123(void); +a=b+c; +# 871 "a3.h" 2 +void test124(void); +void test125(void); +a=b+c; +# 900 "a3.h" +void test126(void); +void test127(void); +a=b+c; +# 1226 "a3.h" +void test128(void); +void test129(void); +a=b+c; +# 1576 "a3.h" +void test130(void); +void test131(void); +a=b+c; +# 1737 "a3.h" +void test132(void); +void test133(void); +a=b+c; +# 1802 "a3.h" +void test134(void); +void test135(void); +a=b+c; +# 1947 "a3.h" +void test136(void); +void test137(void); +a=b+c; +# 1997 "a3.h" +void test138(void); +void test139(void); +a=b+c; +# 2074 "a3.h" +void test140(void); +void test141(void); +a=b+c; +# 2333 "a3.h" +void test142(void); +void test143(void); +a=b+c; +# 2528 "a3.h" +void test144(void); +void test145(void); +a=b+c; +# 2766 "a3.h" +void test146(void); +void test147(void); +a=b+c; +# 3120 "a3.h" +void test148(void); +void test149(void); +a=b+c; +# 3221 "a3.h" +void test150(void); +void test151(void); +a=b+c; +# 3244 "a3.h" +void test152(void); +void test153(void); +a=b+c; +# 3267 "a3.h" +void test154(void); +void test155(void); +a=b+c; +# 3298 "a3.h" +void test156(void); +void test157(void); +a=b+c; +# 3310 "a3.h" +void test158(void); +void test159(void); +a=b+c; +# 3332 "a3.h" +void test160(void); +void test161(void); +a=b+c; +# 3424 "a3.h" +void test162(void); +void test163(void); +a=b+c; +# 3551 "a3.h" +void test164(void); +void test165(void); +a=b+c; +# 3573 "a3.h" +void test166(void); +void test167(void); +a=b+c; +# 3738 "a3.h" +void test168(void); +void test169(void); +a=b+c; +# 3810 "a3.h" +void test170(void); +void test171(void); +a=b+c; +# 4017 "a3.h" +void test172(void); +void test173(void); +a=b+c; +# 4117 "a3.h" +void test174(void); +void test175(void); +a=b+c; +# 4131 "a3.h" +void test176(void); +void test177(void); +a=b+c; +# 51 "a4.c" 2 +void test178(void); +void test179(void); +a=b+c; +# 1 "a2.h" 1 +void test180(void); +void test181(void); +a=b+c; +# 217 "a2.h" +void test182(void); +void test183(void); +a=b+c; +# 460 "a2.h" +void test184(void); +void test185(void); +a=b+c; +# 52 "a4.c" 2 +void test186(void); +void test187(void); +a=b+c; +# 1 "a80.c" 1 +void test188(void); +void test189(void); +a=b+c; +# 1 "a1.h" 1 +void test190(void); +void test191(void); +a=b+c; +# 370 "a1.h" +void test192(void); +void test193(void); +a=b+c; +# 37 "a80.c" 2 +void test194(void); +void test195(void); +a=b+c; +# 53 "a4.c" 2 +void test196(void); +void test197(void); +a=b+c; +# 1 "a6.h" 1 +void test198(void); +void test199(void); +a=b+c; +# 135 "a6.h" +void test200(void); +void test201(void); +a=b+c; +# 150 "a6.h" +void test202(void); +void test203(void); +a=b+c; +# 1 "a81.h" 1 +void test204(void); +void test205(void); +a=b+c; +# 154 "a6.h" 2 +void test206(void); +void test207(void); +a=b+c; +# 1 "a84_a10.h" 1 +void test208(void); +void test209(void); +a=b+c; +# 155 "a6.h" 2 +void test210(void); +void test211(void); +a=b+c; +# 1 "a89.h" 1 +void test212(void); +void test213(void); +a=b+c; +# 156 "a6.h" 2 +void test214(void); +void test215(void); +a=b+c; +# 1 "a88.h" 1 +void test216(void); +void test217(void); +a=b+c; +# 122 "a88.h" +void test218(void); +void test219(void); +a=b+c; +# 248 "a88.h" +void test220(void); +void test221(void); +a=b+c; +# 294 "a88.h" +void test222(void); +void test223(void); +a=b+c; +# 339 "a88.h" +void test224(void); +void test225(void); +a=b+c; +# 157 "a6.h" 2 +void test226(void); +void test227(void); +a=b+c; +# 1 "a90.h" 1 +void test228(void); +void test229(void); +a=b+c; +# 158 "a6.h" 2 +void test230(void); +void test231(void); +a=b+c; +# 1 "a90_a91.h" 1 +void test232(void); +void test233(void); +a=b+c; +# 159 "a6.h" 2 +void test234(void); +void test235(void); +a=b+c; +# 1 "a8.h" 1 +void test236(void); +void test237(void); +a=b+c; +# 160 "a6.h" 2 +void test238(void); +void test239(void); +a=b+c; +# 1 "a10.h" 1 +void test240(void); +void test241(void); +a=b+c; +# 161 "a6.h" 2 +void test242(void); +void test243(void); +a=b+c; +# 1 "a9.h" 1 +void test244(void); +void test245(void); +a=b+c; +# 162 "a6.h" 2 +void test246(void); +void test247(void); +a=b+c; +# 186 "a6.h" +void test248(void); +void test249(void); +a=b+c; +# 219 "a6.h" +void test250(void); +void test251(void); +a=b+c; +# 54 "a4.c" 2 +void test252(void); +void test253(void); +a=b+c; +# 1 "a5.h" 1 +void test254(void); +void test255(void); +a=b+c; +# 1 "a7.h" 1 +void test256(void); +void test257(void); +a=b+c; +# 52 "a5.h" 2 +void test258(void); +void test259(void); +a=b+c; +# 55 "a4.c" 2 +void test260(void); +void test261(void); +a=b+c; diff --git a/tests-gnu/test87.c b/tests-gnu/test87.c new file mode 100644 index 0000000..53e00e6 --- /dev/null +++ b/tests-gnu/test87.c @@ -0,0 +1,16 @@ +enum {e0, e1}; + +int x[] = +{ + [e0] = 0 +}; + +f () +{ + switch (1) + { + case e0: + case e1: + break; + } +} diff --git a/tests-gnu/test87.out b/tests-gnu/test87.out new file mode 100644 index 0000000..53e00e6 --- /dev/null +++ b/tests-gnu/test87.out @@ -0,0 +1,16 @@ +enum {e0, e1}; + +int x[] = +{ + [e0] = 0 +}; + +f () +{ + switch (1) + { + case e0: + case e1: + break; + } +} diff --git a/tests-std/test.c b/tests-std/test.c new file mode 100644 index 0000000..9b46df8 --- /dev/null +++ b/tests-std/test.c @@ -0,0 +1,31 @@ +static int g1 = 0; +typedef long mylong; +static mylong z; + +typedef int Length; +Length len, maxlen; +Length *lengths[]; + +typedef char *String; +String p, lineptr[100], alloc(int); +int strcmp(String, String); +/* +typedef struct tnode *Treeptr; + +typedef struct tnode { + char *word; + int count; + Treeptr left; + Treeptr right; +} Treenode; + +Treeptr talloc(void) { + return (Treeptr) malloc(sizeof(Treenode)); +} + +int fun(int a, mylong b) { + mylong c; + return a+b; +} +*/ + diff --git a/tests-std/test.out b/tests-std/test.out new file mode 100644 index 0000000..9b46df8 --- /dev/null +++ b/tests-std/test.out @@ -0,0 +1,31 @@ +static int g1 = 0; +typedef long mylong; +static mylong z; + +typedef int Length; +Length len, maxlen; +Length *lengths[]; + +typedef char *String; +String p, lineptr[100], alloc(int); +int strcmp(String, String); +/* +typedef struct tnode *Treeptr; + +typedef struct tnode { + char *word; + int count; + Treeptr left; + Treeptr right; +} Treenode; + +Treeptr talloc(void) { + return (Treeptr) malloc(sizeof(Treenode)); +} + +int fun(int a, mylong b) { + mylong c; + return a+b; +} +*/ + diff --git a/tests-std/test10.c b/tests-std/test10.c new file mode 100644 index 0000000..8ebe466 --- /dev/null +++ b/tests-std/test10.c @@ -0,0 +1,7 @@ +int * f(char); +char * b; +main() { + f(*b)[4]; /* indirect on "b", call "f", and index the result + /* by "4" */ + } + diff --git a/tests-std/test10.out b/tests-std/test10.out new file mode 100644 index 0000000..8ebe466 --- /dev/null +++ b/tests-std/test10.out @@ -0,0 +1,7 @@ +int * f(char); +char * b; +main() { + f(*b)[4]; /* indirect on "b", call "f", and index the result + /* by "4" */ + } + diff --git a/tests-std/test11.c b/tests-std/test11.c new file mode 100644 index 0000000..204be95 --- /dev/null +++ b/tests-std/test11.c @@ -0,0 +1,6 @@ +typedef int f; +char * b; +main() { + f(*b)[4]; /* redeclare "b" to be a pointer to 4 ints */ + } + diff --git a/tests-std/test11.out b/tests-std/test11.out new file mode 100644 index 0000000..204be95 --- /dev/null +++ b/tests-std/test11.out @@ -0,0 +1,6 @@ +typedef int f; +char * b; +main() { + f(*b)[4]; /* redeclare "b" to be a pointer to 4 ints */ + } + diff --git a/tests-std/test13.out b/tests-std/test13.out new file mode 100644 index 0000000..e69de29 diff --git a/tests-std/test14.out b/tests-std/test14.out new file mode 100644 index 0000000..e69de29 diff --git a/tests-std/test15.out b/tests-std/test15.out new file mode 100644 index 0000000..e69de29 diff --git a/tests-std/test16.out b/tests-std/test16.out new file mode 100644 index 0000000..e69de29 diff --git a/tests-std/test17.out b/tests-std/test17.out new file mode 100644 index 0000000..e69de29 diff --git a/tests-std/test18.out b/tests-std/test18.out new file mode 100644 index 0000000..2645a81 --- /dev/null +++ b/tests-std/test18.out @@ -0,0 +1,7 @@ +concat_fopen (char *s1, char *s2, char *mode) +{ + char str[/*strlen (s1) + strlen (s2) + */1]; + strcpy (str, s1); + strcat (str, s2); + return fopen (str, mode); +} diff --git a/tests-std/test19.c b/tests-std/test19.c new file mode 100644 index 0000000..2b42f19 --- /dev/null +++ b/tests-std/test19.c @@ -0,0 +1,8 @@ + struct foo {int a[4];}; + + struct foo f(); + + bar (int index) + { + return f().a[index]; + } diff --git a/tests-std/test19.out b/tests-std/test19.out new file mode 100644 index 0000000..2b42f19 --- /dev/null +++ b/tests-std/test19.out @@ -0,0 +1,8 @@ + struct foo {int a[4];}; + + struct foo f(); + + bar (int index) + { + return f().a[index]; + } diff --git a/tests-std/test2.c b/tests-std/test2.c new file mode 100644 index 0000000..fb01241 --- /dev/null +++ b/tests-std/test2.c @@ -0,0 +1,40 @@ +int test2; +#line 37 "uhhuh.c" +#line 10 "input.c" +int i; +int *i; + +/* + this is a comment + #line 50 + with a line directive in it, + very annoying + */ + +typedef long mylong; + +enum myenum { one, two, three }; + +# 32 "gnustyle.h" 1 3 4 +// old style +//short foo(a, c) +// short a; +// char c; +//{ return 3; +//} + +#line 100 +int f(char c, char *d) +{ + + struct s; + int z = 100; + struct s { + short c, d; + long l; + mylong m; + }; + + +} + diff --git a/tests-std/test2.out b/tests-std/test2.out new file mode 100644 index 0000000..fb01241 --- /dev/null +++ b/tests-std/test2.out @@ -0,0 +1,40 @@ +int test2; +#line 37 "uhhuh.c" +#line 10 "input.c" +int i; +int *i; + +/* + this is a comment + #line 50 + with a line directive in it, + very annoying + */ + +typedef long mylong; + +enum myenum { one, two, three }; + +# 32 "gnustyle.h" 1 3 4 +// old style +//short foo(a, c) +// short a; +// char c; +//{ return 3; +//} + +#line 100 +int f(char c, char *d) +{ + + struct s; + int z = 100; + struct s { + short c, d; + long l; + mylong m; + }; + + +} + diff --git a/tests-std/test20.c b/tests-std/test20.c new file mode 100644 index 0000000..f7aee66 --- /dev/null +++ b/tests-std/test20.c @@ -0,0 +1,6 @@ + foo (float f, float g) + { + float beat_freqs[2] = { f-g, f+g }; + return 1; + } + diff --git a/tests-std/test20.out b/tests-std/test20.out new file mode 100644 index 0000000..f7aee66 --- /dev/null +++ b/tests-std/test20.out @@ -0,0 +1,6 @@ + foo (float f, float g) + { + float beat_freqs[2] = { f-g, f+g }; + return 1; + } + diff --git a/tests-std/test21.out b/tests-std/test21.out new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/tests-std/test21.out @@ -0,0 +1 @@ + diff --git a/tests-std/test22.out b/tests-std/test22.out new file mode 100644 index 0000000..e69de29 diff --git a/tests-std/test23.c b/tests-std/test23.c new file mode 100644 index 0000000..7b773f3 --- /dev/null +++ b/tests-std/test23.c @@ -0,0 +1,12 @@ +now() { + union foo { int i; double d; }; + int x; + double y; + void hack (union foo); + union foo u; +// u = (union foo) x == (u.i = x); +// u = (union foo) y == (u.d = y); + hack ((union foo) x); + +} + diff --git a/tests-std/test23.out b/tests-std/test23.out new file mode 100644 index 0000000..7b773f3 --- /dev/null +++ b/tests-std/test23.out @@ -0,0 +1,12 @@ +now() { + union foo { int i; double d; }; + int x; + double y; + void hack (union foo); + union foo u; +// u = (union foo) x == (u.i = x); +// u = (union foo) y == (u.d = y); + hack ((union foo) x); + +} + diff --git a/tests-std/test24.out b/tests-std/test24.out new file mode 100644 index 0000000..a10c001 --- /dev/null +++ b/tests-std/test24.out @@ -0,0 +1,4 @@ + +struct foo {int a[5];} ; +struct foo f(); + diff --git a/tests-std/test25.out b/tests-std/test25.out new file mode 100644 index 0000000..f20b6c5 --- /dev/null +++ b/tests-std/test25.out @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/tests-std/test26.out b/tests-std/test26.out new file mode 100644 index 0000000..81dd310 --- /dev/null +++ b/tests-std/test26.out @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/tests-std/test27.out b/tests-std/test27.out new file mode 100644 index 0000000..e69de29 diff --git a/tests-std/test28.out b/tests-std/test28.out new file mode 100644 index 0000000..5b73973 --- /dev/null +++ b/tests-std/test28.out @@ -0,0 +1,2 @@ +// C++ comment + diff --git a/tests-std/test29.out b/tests-std/test29.out new file mode 100644 index 0000000..9eee8c1 --- /dev/null +++ b/tests-std/test29.out @@ -0,0 +1,5 @@ + +typedef struct a { + int b; + } c,*d; + diff --git a/tests-std/test3.c b/tests-std/test3.c new file mode 100644 index 0000000..a3f3f13 --- /dev/null +++ b/tests-std/test3.c @@ -0,0 +1,4 @@ +typedef double floatp; + +int gs_set(float (*)(floatp, floatp ) ); + diff --git a/tests-std/test3.out b/tests-std/test3.out new file mode 100644 index 0000000..a3f3f13 --- /dev/null +++ b/tests-std/test3.out @@ -0,0 +1,4 @@ +typedef double floatp; + +int gs_set(float (*)(floatp, floatp ) ); + diff --git a/tests-std/test30.out b/tests-std/test30.out new file mode 100644 index 0000000..929ce69 --- /dev/null +++ b/tests-std/test30.out @@ -0,0 +1,15 @@ +typedef struct bitmap_element_def +{ + struct bitmap_element_def *next; + struct bitmap_element_def *prev; + unsigned int indx; + unsigned int bits[2 ]; +} bitmap_element; + + +typedef struct bitmap_head_def { + bitmap_element *first; + bitmap_element *current; + int indx; +} bitmap_head, *bitmap; + diff --git a/tests-std/test31.out b/tests-std/test31.out new file mode 100644 index 0000000..66d2a66 --- /dev/null +++ b/tests-std/test31.out @@ -0,0 +1,7 @@ +typedef struct ppptype_ { + void *d; + void *l; + int t; + int m; +} ppptype; +typedef struct jjjtype_ jjjtype ; diff --git a/tests-std/test32.c b/tests-std/test32.c new file mode 100644 index 0000000..7d661cc --- /dev/null +++ b/tests-std/test32.c @@ -0,0 +1,9 @@ +typedef enum { + F_FE, + F_U, + F_E, +} yy; +main() { + exit(0); +} + diff --git a/tests-std/test32.out b/tests-std/test32.out new file mode 100644 index 0000000..7d661cc --- /dev/null +++ b/tests-std/test32.out @@ -0,0 +1,9 @@ +typedef enum { + F_FE, + F_U, + F_E, +} yy; +main() { + exit(0); +} + diff --git a/tests-std/test33.out b/tests-std/test33.out new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/tests-std/test33.out @@ -0,0 +1 @@ + diff --git a/tests-std/test34.out b/tests-std/test34.out new file mode 100644 index 0000000..e69de29 diff --git a/tests-std/test35.out b/tests-std/test35.out new file mode 100644 index 0000000..e69de29 diff --git a/tests-std/test36.out b/tests-std/test36.out new file mode 100644 index 0000000..e69de29 diff --git a/tests-std/test37.out b/tests-std/test37.out new file mode 100644 index 0000000..9ec4605 --- /dev/null +++ b/tests-std/test37.out @@ -0,0 +1,3 @@ + enum { DDD = -7 }; + + diff --git a/tests-std/test38.c b/tests-std/test38.c new file mode 100644 index 0000000..b04a258 --- /dev/null +++ b/tests-std/test38.c @@ -0,0 +1,10 @@ +typedef unsigned char uchar; +typedef struct _hgfretty { + uchar bvfetgl; + uchar aytrffr[80 ]; +} hgfretty; + +typedef struct pojeqsd { + char hgfretty[99 ]; +} pojeqsd_t; + diff --git a/tests-std/test38.out b/tests-std/test38.out new file mode 100644 index 0000000..b04a258 --- /dev/null +++ b/tests-std/test38.out @@ -0,0 +1,10 @@ +typedef unsigned char uchar; +typedef struct _hgfretty { + uchar bvfetgl; + uchar aytrffr[80 ]; +} hgfretty; + +typedef struct pojeqsd { + char hgfretty[99 ]; +} pojeqsd_t; + diff --git a/tests-std/test39.out b/tests-std/test39.out new file mode 100644 index 0000000..547f5a5 --- /dev/null +++ b/tests-std/test39.out @@ -0,0 +1,7 @@ +typedef struct x_ x; +struct x_{ +int y; +int z; +}; +x b; + diff --git a/tests-std/test4.c b/tests-std/test4.c new file mode 100644 index 0000000..8360a5b --- /dev/null +++ b/tests-std/test4.c @@ -0,0 +1,5 @@ +int a,b; +int f() { + a = 1, b = 2; +} + diff --git a/tests-std/test4.out b/tests-std/test4.out new file mode 100644 index 0000000..8360a5b --- /dev/null +++ b/tests-std/test4.out @@ -0,0 +1,5 @@ +int a,b; +int f() { + a = 1, b = 2; +} + diff --git a/tests-std/test40.out b/tests-std/test40.out new file mode 100644 index 0000000..e69de29 diff --git a/tests-std/test41.out b/tests-std/test41.out new file mode 100644 index 0000000..7eea703 --- /dev/null +++ b/tests-std/test41.out @@ -0,0 +1,4 @@ +int x; + +int y; + diff --git a/tests-std/test42.c b/tests-std/test42.c new file mode 100644 index 0000000..73ed676 --- /dev/null +++ b/tests-std/test42.c @@ -0,0 +1,21 @@ +typedef struct checkme_ checkme ; + +typedef struct yt668u_ { + int j76g; + int lk4f2s; + int hg62; +} yt668u; + +void +a233 (yt668u *checkme) +{ + if ((( checkme )->j76g) ) { + } + { + { ( ( checkme )->lk4f2s ) = 0; } ; + ( checkme )->hg62 = 0; + } + ; +} + + diff --git a/tests-std/test42.out b/tests-std/test42.out new file mode 100644 index 0000000..73ed676 --- /dev/null +++ b/tests-std/test42.out @@ -0,0 +1,21 @@ +typedef struct checkme_ checkme ; + +typedef struct yt668u_ { + int j76g; + int lk4f2s; + int hg62; +} yt668u; + +void +a233 (yt668u *checkme) +{ + if ((( checkme )->j76g) ) { + } + { + { ( ( checkme )->lk4f2s ) = 0; } ; + ( checkme )->hg62 = 0; + } + ; +} + + diff --git a/tests-std/test43.out b/tests-std/test43.out new file mode 100644 index 0000000..7eea703 --- /dev/null +++ b/tests-std/test43.out @@ -0,0 +1,4 @@ +int x; + +int y; + diff --git a/tests-std/test44.c b/tests-std/test44.c new file mode 100644 index 0000000..a787f1e --- /dev/null +++ b/tests-std/test44.c @@ -0,0 +1,11 @@ +#pragma whoa nellie +int a; +# +#ident something +#pragma something else + +main() { + exit(0); +#ident heynow +} + diff --git a/tests-std/test44.out b/tests-std/test44.out new file mode 100644 index 0000000..a787f1e --- /dev/null +++ b/tests-std/test44.out @@ -0,0 +1,11 @@ +#pragma whoa nellie +int a; +# +#ident something +#pragma something else + +main() { + exit(0); +#ident heynow +} + diff --git a/tests-std/test45.out b/tests-std/test45.out new file mode 100644 index 0000000..1ca7436 --- /dev/null +++ b/tests-std/test45.out @@ -0,0 +1,4 @@ +typedef struct h765t_ h765t ; +struct h765t_ { +void *ll881ss[10]; +}; diff --git a/tests-std/test46.c b/tests-std/test46.c new file mode 100644 index 0000000..65ede80 --- /dev/null +++ b/tests-std/test46.c @@ -0,0 +1,6 @@ +const typedef struct as340kj_ { + short t45e; + char *u76h; +} as340kj; +extern char *hh(char, as340kj*); + diff --git a/tests-std/test46.out b/tests-std/test46.out new file mode 100644 index 0000000..65ede80 --- /dev/null +++ b/tests-std/test46.out @@ -0,0 +1,6 @@ +const typedef struct as340kj_ { + short t45e; + char *u76h; +} as340kj; +extern char *hh(char, as340kj*); + diff --git a/tests-std/test47.c b/tests-std/test47.c new file mode 100644 index 0000000..d95e8f9 --- /dev/null +++ b/tests-std/test47.c @@ -0,0 +1,15 @@ +typedef struct g667h_ g667h ; +struct g667h_ { + const char *ttc; + const char *e; + const char *t; +}; + + +int dddd() +{ + +int g667h, ttt; + +} + diff --git a/tests-std/test47.out b/tests-std/test47.out new file mode 100644 index 0000000..d95e8f9 --- /dev/null +++ b/tests-std/test47.out @@ -0,0 +1,15 @@ +typedef struct g667h_ g667h ; +struct g667h_ { + const char *ttc; + const char *e; + const char *t; +}; + + +int dddd() +{ + +int g667h, ttt; + +} + diff --git a/tests-std/test48.c b/tests-std/test48.c new file mode 100644 index 0000000..3391520 --- /dev/null +++ b/tests-std/test48.c @@ -0,0 +1,18 @@ +typedef struct g667h_ g667h ; +struct g667h_ { + const char *ttc; + const char *e; + const char *t; +}; + + +int dddd(char *yt5, + g667h *g667h); +int dddd(char *yt5, + g667h *g667h) +{ + +int ttt; + +} + diff --git a/tests-std/test48.out b/tests-std/test48.out new file mode 100644 index 0000000..3391520 --- /dev/null +++ b/tests-std/test48.out @@ -0,0 +1,18 @@ +typedef struct g667h_ g667h ; +struct g667h_ { + const char *ttc; + const char *e; + const char *t; +}; + + +int dddd(char *yt5, + g667h *g667h); +int dddd(char *yt5, + g667h *g667h) +{ + +int ttt; + +} + diff --git a/tests-std/test49.c b/tests-std/test49.c new file mode 100644 index 0000000..8b7e11e --- /dev/null +++ b/tests-std/test49.c @@ -0,0 +1,15 @@ +typedef struct gh554j_ { + long x2; + char *x3; +} gh554j; + void +ad (int *x3, int *x4) +{ + gh554j x1; + if (x3 && x4) { + char gh554j[19]; + gh554j[0]='\n'; + } + +} + diff --git a/tests-std/test49.out b/tests-std/test49.out new file mode 100644 index 0000000..8b7e11e --- /dev/null +++ b/tests-std/test49.out @@ -0,0 +1,15 @@ +typedef struct gh554j_ { + long x2; + char *x3; +} gh554j; + void +ad (int *x3, int *x4) +{ + gh554j x1; + if (x3 && x4) { + char gh554j[19]; + gh554j[0]='\n'; + } + +} + diff --git a/tests-std/test5.out b/tests-std/test5.out new file mode 100644 index 0000000..9e7c273 --- /dev/null +++ b/tests-std/test5.out @@ -0,0 +1,3 @@ +typedef void *PyObject; + + \ No newline at end of file diff --git a/tests-std/test50.c b/tests-std/test50.c new file mode 100644 index 0000000..4fcb8e7 --- /dev/null +++ b/tests-std/test50.c @@ -0,0 +1,15 @@ +struct aaa_ { +int a; +int b; +} ; +typedef struct aaa_ aaa; +void foo (void *aaa); +void foo (void *paa) +{ + aaa *aab = (void *)paa; + long *rtr; + char temptt; + short *zzs; + +} + diff --git a/tests-std/test50.out b/tests-std/test50.out new file mode 100644 index 0000000..4fcb8e7 --- /dev/null +++ b/tests-std/test50.out @@ -0,0 +1,15 @@ +struct aaa_ { +int a; +int b; +} ; +typedef struct aaa_ aaa; +void foo (void *aaa); +void foo (void *paa) +{ + aaa *aab = (void *)paa; + long *rtr; + char temptt; + short *zzs; + +} + diff --git a/tests-std/test51.c b/tests-std/test51.c new file mode 100644 index 0000000..9d8bb46 --- /dev/null +++ b/tests-std/test51.c @@ -0,0 +1,9 @@ +main() { + if (nerror) cleanup(); + else if (argc < 1) faterror("no input file%s", cmdusage); + else for (; 0 < argc; cleanup(), ++argv, --argc) { + targetdelta = 0; + ffree(); + } +} + diff --git a/tests-std/test51.out b/tests-std/test51.out new file mode 100644 index 0000000..e69de29 diff --git a/tests-std/test52.out b/tests-std/test52.out new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/tests-std/test52.out @@ -0,0 +1 @@ + diff --git a/tests-std/test53.out b/tests-std/test53.out new file mode 100644 index 0000000..e69de29 diff --git a/tests-std/test54.out b/tests-std/test54.out new file mode 100644 index 0000000..6e2444b --- /dev/null +++ b/tests-std/test54.out @@ -0,0 +1,14 @@ +extern void rt(long, long); +extern long rn(void); +extern void rl(char*, int, int); +int rd (void **, int) ; +rf (int *rnx) +{ + return (rnx); +} + +rnn (int rny) +{ + return (rny); +} + \ No newline at end of file diff --git a/tests-std/test55.c b/tests-std/test55.c new file mode 100644 index 0000000..6696ead --- /dev/null +++ b/tests-std/test55.c @@ -0,0 +1,4 @@ +/* program with only a + comment in it + */ + diff --git a/tests-std/test55.out b/tests-std/test55.out new file mode 100644 index 0000000..6696ead --- /dev/null +++ b/tests-std/test55.out @@ -0,0 +1,4 @@ +/* program with only a + comment in it + */ + diff --git a/tests-std/test56.out b/tests-std/test56.out new file mode 100644 index 0000000..e69de29 diff --git a/tests-std/test57.out b/tests-std/test57.out new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/tests-std/test57.out @@ -0,0 +1 @@ + diff --git a/tests-std/test58.out b/tests-std/test58.out new file mode 100644 index 0000000..e69de29 diff --git a/tests-std/test59.c b/tests-std/test59.c new file mode 100644 index 0000000..efe32d2 --- /dev/null +++ b/tests-std/test59.c @@ -0,0 +1,9 @@ +typedef long time_t; + +static time_t +f (janfirst, rulep) + __const time_t janfirst; + register __const int * __const rulep; +{ +} + diff --git a/tests-std/test59.out b/tests-std/test59.out new file mode 100644 index 0000000..efe32d2 --- /dev/null +++ b/tests-std/test59.out @@ -0,0 +1,9 @@ +typedef long time_t; + +static time_t +f (janfirst, rulep) + __const time_t janfirst; + register __const int * __const rulep; +{ +} + diff --git a/tests-std/test6.c b/tests-std/test6.c new file mode 100644 index 0000000..c44d582 --- /dev/null +++ b/tests-std/test6.c @@ -0,0 +1,7 @@ +typedef char F; +main() { + long a=sizeof(F), F, b=sizeof(F); + //assert(1 == a); + //assert(sizeof(long) == b); + } + diff --git a/tests-std/test6.out b/tests-std/test6.out new file mode 100644 index 0000000..c44d582 --- /dev/null +++ b/tests-std/test6.out @@ -0,0 +1,7 @@ +typedef char F; +main() { + long a=sizeof(F), F, b=sizeof(F); + //assert(1 == a); + //assert(sizeof(long) == b); + } + diff --git a/tests-std/test60.c b/tests-std/test60.c new file mode 100644 index 0000000..039a88d --- /dev/null +++ b/tests-std/test60.c @@ -0,0 +1,3 @@ +//long int s[5] = L"abcd"; +char *s = L"abcd"; + diff --git a/tests-std/test60.out b/tests-std/test60.out new file mode 100644 index 0000000..039a88d --- /dev/null +++ b/tests-std/test60.out @@ -0,0 +1,3 @@ +//long int s[5] = L"abcd"; +char *s = L"abcd"; + diff --git a/tests-std/test61.out b/tests-std/test61.out new file mode 100644 index 0000000..a22f902 --- /dev/null +++ b/tests-std/test61.out @@ -0,0 +1,7 @@ +struct s +{ + int a; + int b; + short c; + int d[3]; +}; diff --git a/tests-std/test62.out b/tests-std/test62.out new file mode 100644 index 0000000..68c8c4e --- /dev/null +++ b/tests-std/test62.out @@ -0,0 +1,4 @@ +struct s { + int c[3]; +}; + diff --git a/tests-std/test63.out b/tests-std/test63.out new file mode 100644 index 0000000..e69de29 diff --git a/tests-std/test64.out b/tests-std/test64.out new file mode 100644 index 0000000..e69de29 diff --git a/tests-std/test65.out b/tests-std/test65.out new file mode 100644 index 0000000..e69de29 diff --git a/tests-std/test66.out b/tests-std/test66.out new file mode 100644 index 0000000..e69de29 diff --git a/tests-std/test67.out b/tests-std/test67.out new file mode 100644 index 0000000..e69de29 diff --git a/tests-std/test68.out b/tests-std/test68.out new file mode 100644 index 0000000..7cfbc69 --- /dev/null +++ b/tests-std/test68.out @@ -0,0 +1,4 @@ +struct s +{ + int b; +}; diff --git a/tests-std/test69.c b/tests-std/test69.c new file mode 100644 index 0000000..403192b --- /dev/null +++ b/tests-std/test69.c @@ -0,0 +1,3 @@ +char *b = "a string with a \ +continuation"; + diff --git a/tests-std/test69.out b/tests-std/test69.out new file mode 100644 index 0000000..403192b --- /dev/null +++ b/tests-std/test69.out @@ -0,0 +1,3 @@ +char *b = "a string with a \ +continuation"; + diff --git a/tests-std/test7.c b/tests-std/test7.c new file mode 100644 index 0000000..beb7d6b --- /dev/null +++ b/tests-std/test7.c @@ -0,0 +1,2 @@ +typedef int A, B(A); + diff --git a/tests-std/test7.out b/tests-std/test7.out new file mode 100644 index 0000000..beb7d6b --- /dev/null +++ b/tests-std/test7.out @@ -0,0 +1,2 @@ +typedef int A, B(A); + diff --git a/tests-std/test70.out b/tests-std/test70.out new file mode 100644 index 0000000..3a9c615 --- /dev/null +++ b/tests-std/test70.out @@ -0,0 +1,5 @@ +f() +{ + if (!('\400')); +} + diff --git a/tests-std/test71.out b/tests-std/test71.out new file mode 100644 index 0000000..e69de29 diff --git a/tests-std/test72.c b/tests-std/test72.c new file mode 100644 index 0000000..269f7ac --- /dev/null +++ b/tests-std/test72.c @@ -0,0 +1,15 @@ +# 1 "test72.c" +# 1 "/sw/packages/cygnus/progressive-97r1/sparc-sun-solaris2.5.1/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7-97r1/include/stdio.h" 1 3 +# 1 "test72.c" 2 +char f; +m() +{ +( +!( +f + +3 &3) +-1) +; +} + + diff --git a/tests-std/test72.out b/tests-std/test72.out new file mode 100644 index 0000000..269f7ac --- /dev/null +++ b/tests-std/test72.out @@ -0,0 +1,15 @@ +# 1 "test72.c" +# 1 "/sw/packages/cygnus/progressive-97r1/sparc-sun-solaris2.5.1/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7-97r1/include/stdio.h" 1 3 +# 1 "test72.c" 2 +char f; +m() +{ +( +!( +f + +3 &3) +-1) +; +} + + diff --git a/tests-std/test73.out b/tests-std/test73.out new file mode 100644 index 0000000..e69de29 diff --git a/tests-std/test74.out b/tests-std/test74.out new file mode 100644 index 0000000..e69de29 diff --git a/tests-std/test75.out b/tests-std/test75.out new file mode 100644 index 0000000..a1148a7 --- /dev/null +++ b/tests-std/test75.out @@ -0,0 +1,262 @@ +# 1 "a4.c" +void test0(void); +# 1 "a1.h" 1 +void test1(void); +# 1 "a11.h" 1 +void test2(void); +# 856 "a11.h" +void test3(void); +# 105 "a1.h" 2 +void test4(void); +# 1 "a13.h" 1 +void test5(void); +# 1 "a14.h" 1 +void test6(void); +# 1 "a18.h" 1 +void test7(void); +# 63 "a14.h" 2 +void test8(void); +# 133 "a13.h" 2 +void test9(void); +# 1 "a16.h" 1 +void test10(void); +# 1 "a15.h" 1 +void test11(void); +# 251 "a15.h" +void test12(void); +# 465 "a15.h" +void test13(void); +# 484 "a15.h" +void test14(void); +# 755 "a15.h" +void test15(void); +# 911 "a15.h" +void test16(void); +# 1388 "a15.h" +void test17(void); +# 1408 "a15.h" +void test18(void); +# 32 "a16.h" 2 +void test19(void); +# 229 "a13.h" 2 +void test20(void); +# 121 "a1.h" 2 +void test21(void); +# 1 "a20.h" 1 +void test22(void); +# 132 "a1.h" 2 +void test23(void); +# 1 "a999.h" 1 +void test24(void); +# 311 "a1.h" 2 +void test25(void); +# 1 "a100.h" 1 +void test26(void); +# 355 "a1.h" 2 +void test27(void); +# 1 "a30.h" 1 +void test28(void); +# 356 "a1.h" 2 +void test29(void); +# 1 "a99.h" 1 +void test30(void); +# 357 "a1.h" 2 +void test31(void); +# 1 "a32.h" 1 +void test32(void); +# 1 "a31.h" 1 +void test33(void); +# 25 "a32.h" 2 +void test34(void); +# 1 "a35.h" 1 +void test35(void); +# 33 "a32.h" 2 +void test36(void); +# 366 "a1.h" 2 +void test37(void); +# 1 "version.h" 1 +void test38(void); +# 367 "a1.h" 2 +void test39(void); +# 50 "a4.c" 2 +void test40(void); +# 1 "a3.h" 1 +void test41(void); +# 1 "a12_a11.h" 1 +void test42(void); +# 1 "a40.h" 1 +void test43(void); +# 15 "a12_a11.h" 2 +void test44(void); +# 1 "a42.h" 1 +void test45(void); +# 16 "a12_a11.h" 2 +void test46(void); +# 1 "a43.h" 1 +void test47(void); +# 1 "a44.h" 1 +void test48(void); +# 341 "a43.h" 2 +void test49(void); +# 17 "a12_a11.h" 2 +void test50(void); +# 1 "a12.h" 1 +void test51(void); +# 1 "a47.h" 1 +void test52(void); +# 301 "a12.h" 2 +void test53(void); +# 18 "a12_a11.h" 2 +void test54(void); +# 1 "a60.h" 1 +void test55(void); +# 20 "a12_a11.h" 2 +void test56(void); +# 1121 "a12_a11.h" +void test57(void); +# 1205 "a12_a11.h" +void test58(void); +# 1680 "a12_a11.h" +void test59(void); +# 1804 "a12_a11.h" +void test60(void); +# 1864 "a12_a11.h" +void test61(void); +# 871 "a3.h" 2 +void test62(void); +# 900 "a3.h" +void test63(void); +# 1226 "a3.h" +void test64(void); +# 1576 "a3.h" +void test65(void); +# 1737 "a3.h" +void test66(void); +# 1802 "a3.h" +void test67(void); +# 1947 "a3.h" +void test68(void); +# 1997 "a3.h" +void test69(void); +# 2074 "a3.h" +void test70(void); +# 2333 "a3.h" +void test71(void); +# 2528 "a3.h" +void test72(void); +# 2766 "a3.h" +void test73(void); +# 3120 "a3.h" +void test74(void); +# 3221 "a3.h" +void test75(void); +# 3244 "a3.h" +void test76(void); +# 3267 "a3.h" +void test77(void); +# 3298 "a3.h" +void test78(void); +# 3310 "a3.h" +void test79(void); +# 3332 "a3.h" +void test80(void); +# 3424 "a3.h" +void test81(void); +# 3551 "a3.h" +void test82(void); +# 3573 "a3.h" +void test83(void); +# 3738 "a3.h" +void test84(void); +# 3810 "a3.h" +void test85(void); +# 4017 "a3.h" +void test86(void); +# 4117 "a3.h" +void test87(void); +# 4131 "a3.h" +void test88(void); +# 51 "a4.c" 2 +void test89(void); +# 1 "a2.h" 1 +void test90(void); +# 217 "a2.h" +void test91(void); +# 460 "a2.h" +void test92(void); +# 52 "a4.c" 2 +void test93(void); +# 1 "a80.c" 1 +void test94(void); +# 1 "a1.h" 1 +void test95(void); +# 370 "a1.h" +void test96(void); +# 37 "a80.c" 2 +void test97(void); +# 53 "a4.c" 2 +void test98(void); +# 1 "a6.h" 1 +void test99(void); +# 135 "a6.h" +void test100(void); +# 150 "a6.h" +void test101(void); +# 1 "a81.h" 1 +void test102(void); +# 154 "a6.h" 2 +void test103(void); +# 1 "a84_a10.h" 1 +void test104(void); +# 155 "a6.h" 2 +void test105(void); +# 1 "a89.h" 1 +void test106(void); +# 156 "a6.h" 2 +void test107(void); +# 1 "a88.h" 1 +void test108(void); +# 122 "a88.h" +void test109(void); +# 248 "a88.h" +void test110(void); +# 294 "a88.h" +void test111(void); +# 339 "a88.h" +void test112(void); +# 157 "a6.h" 2 +void test113(void); +# 1 "a90.h" 1 +void test114(void); +# 158 "a6.h" 2 +void test115(void); +# 1 "a90_a91.h" 1 +void test116(void); +# 159 "a6.h" 2 +void test117(void); +# 1 "a8.h" 1 +void test118(void); +# 160 "a6.h" 2 +void test119(void); +# 1 "a10.h" 1 +void test120(void); +# 161 "a6.h" 2 +void test121(void); +# 1 "a9.h" 1 +void test122(void); +# 162 "a6.h" 2 +void test123(void); +# 186 "a6.h" +void test124(void); +# 219 "a6.h" +void test125(void); +# 54 "a4.c" 2 +void test126(void); +# 1 "a5.h" 1 +void test127(void); +# 1 "a7.h" 1 +void test128(void); +# 52 "a5.h" 2 +void test129(void); +# 55 "a4.c" 2 +void test130(void); diff --git a/tests-std/test76.out b/tests-std/test76.out new file mode 100644 index 0000000..f61a455 --- /dev/null +++ b/tests-std/test76.out @@ -0,0 +1,3 @@ +# 1 "a4.c" +void test0(void); +void test1(void); diff --git a/tests-std/test77.c b/tests-std/test77.c new file mode 100644 index 0000000..1b6d0de --- /dev/null +++ b/tests-std/test77.c @@ -0,0 +1,53 @@ +# 1 "a.c" + +# 1 "a.h" 1 + +int aa1; +int aa2; +void testaa(void); +# 2 "a.c" 2 + +# 1 "b.h" 1 + +int bb1; +int bb2; +# 1 "b1.h" 1 + +int b12; +int b22; +# 1 "b12.h" 1 + +int b33; +# 1 "b13.h" 1 + +int b44; + +# 1 "b14.h" 1 +int r45; +void ttt(void); +int r56; +# 4 "b13.h" 2 + + +int b55; +# 3 "b12.h" 2 + +void test66(void); +# 4 "b1.h" 2 + +void testb12(void); +# 4 "b.h" 2 + +int bb3; + + + +# 3 "a.c" 2 + +# 1 "c.h" 1 + +int c11; +int c12; +void testc1(void); +# 4 "a.c" 2 + diff --git a/tests-std/test77.out b/tests-std/test77.out new file mode 100644 index 0000000..1b6d0de --- /dev/null +++ b/tests-std/test77.out @@ -0,0 +1,53 @@ +# 1 "a.c" + +# 1 "a.h" 1 + +int aa1; +int aa2; +void testaa(void); +# 2 "a.c" 2 + +# 1 "b.h" 1 + +int bb1; +int bb2; +# 1 "b1.h" 1 + +int b12; +int b22; +# 1 "b12.h" 1 + +int b33; +# 1 "b13.h" 1 + +int b44; + +# 1 "b14.h" 1 +int r45; +void ttt(void); +int r56; +# 4 "b13.h" 2 + + +int b55; +# 3 "b12.h" 2 + +void test66(void); +# 4 "b1.h" 2 + +void testb12(void); +# 4 "b.h" 2 + +int bb3; + + + +# 3 "a.c" 2 + +# 1 "c.h" 1 + +int c11; +int c12; +void testc1(void); +# 4 "a.c" 2 + diff --git a/tests-std/test78.c b/tests-std/test78.c new file mode 100644 index 0000000..a9921e6 --- /dev/null +++ b/tests-std/test78.c @@ -0,0 +1,53 @@ +# 1 "test78.c" + +# 1 "a.h" 1 + +int aa1; +int aa2; +void testaa(void); +# 2 "test78.c" 2 + +# 1 "b.h" 1 + +int bb1; +int bb2; +# 1 "b1.h" 1 + +int b12; +int b22; +# 1 "b12.h" 1 + +int b33; +# 1 "b13.h" 1 + +int b44; + +# 1 "b14.h" 1 +int r45; +void ttt(void); +int r56; +# 4 "b13.h" 2 + + +int b55; +# 3 "b12.h" 2 + +void test66(void); +# 4 "b1.h" 2 + +void testb12(void); +# 4 "b.h" 2 + +int bb3; + + + +# 3 "test78.c" 2 + +# 1 "c.h" 1 + +int c11; +int c12; +void testc1(void); +# 4 "test78.c" 2 + diff --git a/tests-std/test78.out b/tests-std/test78.out new file mode 100644 index 0000000..a9921e6 --- /dev/null +++ b/tests-std/test78.out @@ -0,0 +1,53 @@ +# 1 "test78.c" + +# 1 "a.h" 1 + +int aa1; +int aa2; +void testaa(void); +# 2 "test78.c" 2 + +# 1 "b.h" 1 + +int bb1; +int bb2; +# 1 "b1.h" 1 + +int b12; +int b22; +# 1 "b12.h" 1 + +int b33; +# 1 "b13.h" 1 + +int b44; + +# 1 "b14.h" 1 +int r45; +void ttt(void); +int r56; +# 4 "b13.h" 2 + + +int b55; +# 3 "b12.h" 2 + +void test66(void); +# 4 "b1.h" 2 + +void testb12(void); +# 4 "b.h" 2 + +int bb3; + + + +# 3 "test78.c" 2 + +# 1 "c.h" 1 + +int c11; +int c12; +void testc1(void); +# 4 "test78.c" 2 + diff --git a/tests-std/test79.c b/tests-std/test79.c new file mode 100644 index 0000000..1b6d0de --- /dev/null +++ b/tests-std/test79.c @@ -0,0 +1,53 @@ +# 1 "a.c" + +# 1 "a.h" 1 + +int aa1; +int aa2; +void testaa(void); +# 2 "a.c" 2 + +# 1 "b.h" 1 + +int bb1; +int bb2; +# 1 "b1.h" 1 + +int b12; +int b22; +# 1 "b12.h" 1 + +int b33; +# 1 "b13.h" 1 + +int b44; + +# 1 "b14.h" 1 +int r45; +void ttt(void); +int r56; +# 4 "b13.h" 2 + + +int b55; +# 3 "b12.h" 2 + +void test66(void); +# 4 "b1.h" 2 + +void testb12(void); +# 4 "b.h" 2 + +int bb3; + + + +# 3 "a.c" 2 + +# 1 "c.h" 1 + +int c11; +int c12; +void testc1(void); +# 4 "a.c" 2 + diff --git a/tests-std/test79.out b/tests-std/test79.out new file mode 100644 index 0000000..1b6d0de --- /dev/null +++ b/tests-std/test79.out @@ -0,0 +1,53 @@ +# 1 "a.c" + +# 1 "a.h" 1 + +int aa1; +int aa2; +void testaa(void); +# 2 "a.c" 2 + +# 1 "b.h" 1 + +int bb1; +int bb2; +# 1 "b1.h" 1 + +int b12; +int b22; +# 1 "b12.h" 1 + +int b33; +# 1 "b13.h" 1 + +int b44; + +# 1 "b14.h" 1 +int r45; +void ttt(void); +int r56; +# 4 "b13.h" 2 + + +int b55; +# 3 "b12.h" 2 + +void test66(void); +# 4 "b1.h" 2 + +void testb12(void); +# 4 "b.h" 2 + +int bb3; + + + +# 3 "a.c" 2 + +# 1 "c.h" 1 + +int c11; +int c12; +void testc1(void); +# 4 "a.c" 2 + diff --git a/tests-std/test8.c b/tests-std/test8.c new file mode 100644 index 0000000..584c5a9 --- /dev/null +++ b/tests-std/test8.c @@ -0,0 +1,6 @@ +typedef int T; +main() { + int T=100, a=(T)+1; + //assert(101 == T); + } + diff --git a/tests-std/test8.out b/tests-std/test8.out new file mode 100644 index 0000000..584c5a9 --- /dev/null +++ b/tests-std/test8.out @@ -0,0 +1,6 @@ +typedef int T; +main() { + int T=100, a=(T)+1; + //assert(101 == T); + } + diff --git a/tests-std/test80.c b/tests-std/test80.c new file mode 100644 index 0000000..f578276 --- /dev/null +++ b/tests-std/test80.c @@ -0,0 +1,131 @@ +# 1 "a4.c" +# 1 "a1.h" 1 +# 1 "a11.h" 1 +# 856 "a11.h" +# 105 "a1.h" 2 +# 1 "a13.h" 1 +# 1 "a14.h" 1 +# 1 "a18.h" 1 +# 63 "a14.h" 2 +# 133 "a13.h" 2 +# 1 "a16.h" 1 +# 1 "a15.h" 1 +# 251 "a15.h" +# 465 "a15.h" +# 484 "a15.h" +# 755 "a15.h" +# 911 "a15.h" +# 1388 "a15.h" +# 1408 "a15.h" +# 32 "a16.h" 2 +# 229 "a13.h" 2 +# 121 "a1.h" 2 +# 1 "a20.h" 1 +# 132 "a1.h" 2 +# 1 "a999.h" 1 +# 311 "a1.h" 2 +# 1 "a100.h" 1 +# 355 "a1.h" 2 +# 1 "a30.h" 1 +# 356 "a1.h" 2 +# 1 "a99.h" 1 +# 357 "a1.h" 2 +# 1 "a32.h" 1 +# 1 "a31.h" 1 +# 25 "a32.h" 2 +# 1 "a35.h" 1 +# 33 "a32.h" 2 +# 366 "a1.h" 2 +# 1 "version.h" 1 +# 367 "a1.h" 2 +# 50 "a4.c" 2 +# 1 "a3.h" 1 +# 1 "a12_a11.h" 1 +# 1 "a40.h" 1 +# 15 "a12_a11.h" 2 +# 1 "a42.h" 1 +# 16 "a12_a11.h" 2 +# 1 "a43.h" 1 +# 1 "a44.h" 1 +# 341 "a43.h" 2 +# 17 "a12_a11.h" 2 +# 1 "a12.h" 1 +# 1 "a47.h" 1 +# 301 "a12.h" 2 +# 18 "a12_a11.h" 2 +# 1 "a60.h" 1 +# 20 "a12_a11.h" 2 +# 1121 "a12_a11.h" +# 1205 "a12_a11.h" +# 1680 "a12_a11.h" +# 1804 "a12_a11.h" +# 1864 "a12_a11.h" +# 871 "a3.h" 2 +# 900 "a3.h" +# 1226 "a3.h" +# 1576 "a3.h" +# 1737 "a3.h" +# 1802 "a3.h" +# 1947 "a3.h" +# 1997 "a3.h" +# 2074 "a3.h" +# 2333 "a3.h" +# 2528 "a3.h" +# 2766 "a3.h" +# 3120 "a3.h" +# 3221 "a3.h" +# 3244 "a3.h" +# 3267 "a3.h" +# 3298 "a3.h" +# 3310 "a3.h" +# 3332 "a3.h" +# 3424 "a3.h" +# 3551 "a3.h" +# 3573 "a3.h" +# 3738 "a3.h" +# 3810 "a3.h" +# 4017 "a3.h" +# 4117 "a3.h" +# 4131 "a3.h" +# 51 "a4.c" 2 +# 1 "a2.h" 1 +# 217 "a2.h" +# 460 "a2.h" +# 52 "a4.c" 2 +# 1 "a80.c" 1 +# 1 "a1.h" 1 +# 370 "a1.h" +# 37 "a80.c" 2 +# 53 "a4.c" 2 +# 1 "a6.h" 1 +# 135 "a6.h" +# 150 "a6.h" +# 1 "a81.h" 1 +# 154 "a6.h" 2 +# 1 "a84_a10.h" 1 +# 155 "a6.h" 2 +# 1 "a89.h" 1 +# 156 "a6.h" 2 +# 1 "a88.h" 1 +# 122 "a88.h" +# 248 "a88.h" +# 294 "a88.h" +# 339 "a88.h" +# 157 "a6.h" 2 +# 1 "a90.h" 1 +# 158 "a6.h" 2 +# 1 "a90_a91.h" 1 +# 159 "a6.h" 2 +# 1 "a8.h" 1 +# 160 "a6.h" 2 +# 1 "a10.h" 1 +# 161 "a6.h" 2 +# 1 "a9.h" 1 +# 162 "a6.h" 2 +# 186 "a6.h" +# 219 "a6.h" +# 54 "a4.c" 2 +# 1 "a5.h" 1 +# 1 "a7.h" 1 +# 52 "a5.h" 2 +# 55 "a4.c" 2 diff --git a/tests-std/test80.out b/tests-std/test80.out new file mode 100644 index 0000000..f578276 --- /dev/null +++ b/tests-std/test80.out @@ -0,0 +1,131 @@ +# 1 "a4.c" +# 1 "a1.h" 1 +# 1 "a11.h" 1 +# 856 "a11.h" +# 105 "a1.h" 2 +# 1 "a13.h" 1 +# 1 "a14.h" 1 +# 1 "a18.h" 1 +# 63 "a14.h" 2 +# 133 "a13.h" 2 +# 1 "a16.h" 1 +# 1 "a15.h" 1 +# 251 "a15.h" +# 465 "a15.h" +# 484 "a15.h" +# 755 "a15.h" +# 911 "a15.h" +# 1388 "a15.h" +# 1408 "a15.h" +# 32 "a16.h" 2 +# 229 "a13.h" 2 +# 121 "a1.h" 2 +# 1 "a20.h" 1 +# 132 "a1.h" 2 +# 1 "a999.h" 1 +# 311 "a1.h" 2 +# 1 "a100.h" 1 +# 355 "a1.h" 2 +# 1 "a30.h" 1 +# 356 "a1.h" 2 +# 1 "a99.h" 1 +# 357 "a1.h" 2 +# 1 "a32.h" 1 +# 1 "a31.h" 1 +# 25 "a32.h" 2 +# 1 "a35.h" 1 +# 33 "a32.h" 2 +# 366 "a1.h" 2 +# 1 "version.h" 1 +# 367 "a1.h" 2 +# 50 "a4.c" 2 +# 1 "a3.h" 1 +# 1 "a12_a11.h" 1 +# 1 "a40.h" 1 +# 15 "a12_a11.h" 2 +# 1 "a42.h" 1 +# 16 "a12_a11.h" 2 +# 1 "a43.h" 1 +# 1 "a44.h" 1 +# 341 "a43.h" 2 +# 17 "a12_a11.h" 2 +# 1 "a12.h" 1 +# 1 "a47.h" 1 +# 301 "a12.h" 2 +# 18 "a12_a11.h" 2 +# 1 "a60.h" 1 +# 20 "a12_a11.h" 2 +# 1121 "a12_a11.h" +# 1205 "a12_a11.h" +# 1680 "a12_a11.h" +# 1804 "a12_a11.h" +# 1864 "a12_a11.h" +# 871 "a3.h" 2 +# 900 "a3.h" +# 1226 "a3.h" +# 1576 "a3.h" +# 1737 "a3.h" +# 1802 "a3.h" +# 1947 "a3.h" +# 1997 "a3.h" +# 2074 "a3.h" +# 2333 "a3.h" +# 2528 "a3.h" +# 2766 "a3.h" +# 3120 "a3.h" +# 3221 "a3.h" +# 3244 "a3.h" +# 3267 "a3.h" +# 3298 "a3.h" +# 3310 "a3.h" +# 3332 "a3.h" +# 3424 "a3.h" +# 3551 "a3.h" +# 3573 "a3.h" +# 3738 "a3.h" +# 3810 "a3.h" +# 4017 "a3.h" +# 4117 "a3.h" +# 4131 "a3.h" +# 51 "a4.c" 2 +# 1 "a2.h" 1 +# 217 "a2.h" +# 460 "a2.h" +# 52 "a4.c" 2 +# 1 "a80.c" 1 +# 1 "a1.h" 1 +# 370 "a1.h" +# 37 "a80.c" 2 +# 53 "a4.c" 2 +# 1 "a6.h" 1 +# 135 "a6.h" +# 150 "a6.h" +# 1 "a81.h" 1 +# 154 "a6.h" 2 +# 1 "a84_a10.h" 1 +# 155 "a6.h" 2 +# 1 "a89.h" 1 +# 156 "a6.h" 2 +# 1 "a88.h" 1 +# 122 "a88.h" +# 248 "a88.h" +# 294 "a88.h" +# 339 "a88.h" +# 157 "a6.h" 2 +# 1 "a90.h" 1 +# 158 "a6.h" 2 +# 1 "a90_a91.h" 1 +# 159 "a6.h" 2 +# 1 "a8.h" 1 +# 160 "a6.h" 2 +# 1 "a10.h" 1 +# 161 "a6.h" 2 +# 1 "a9.h" 1 +# 162 "a6.h" 2 +# 186 "a6.h" +# 219 "a6.h" +# 54 "a4.c" 2 +# 1 "a5.h" 1 +# 1 "a7.h" 1 +# 52 "a5.h" 2 +# 55 "a4.c" 2 diff --git a/tests-std/test81.out b/tests-std/test81.out new file mode 100644 index 0000000..a3f7d5f --- /dev/null +++ b/tests-std/test81.out @@ -0,0 +1,9 @@ +# 1 "930927-1.c" +# 1 "/sw/packages/cygnus/progressive-97r1/sparc-sun-solaris2.5.1/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7-97r1/include/stddef.h" 1 3 +# 61 "/sw/packages/cygnus/progressive-97r1/sparc-sun-solaris2.5.1/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7-97r1/include/stddef.h" 3 +typedef int ptrdiff_t; +typedef unsigned int size_t; +typedef long int wchar_t; +typedef unsigned int wint_t; +# 302 "/sw/packages/cygnus/progressive-97r1/sparc-sun-solaris2.5.1/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7-97r1/include/stddef.h" 3 +# 1 "930927-1.c" 2 diff --git a/tests-std/test83.out b/tests-std/test83.out new file mode 100644 index 0000000..e69de29 diff --git a/tests-std/test84.c b/tests-std/test84.c new file mode 100644 index 0000000..646eedb --- /dev/null +++ b/tests-std/test84.c @@ -0,0 +1,132 @@ +# 1 "a4.c" +# 1 "a1.h" 1 +# 1 "a11.h" 1 +# 856 "a11.h" +# 105 "a1.h" 2 +# 1 "a13.h" 1 +# 1 "a14.h" 1 +# 1 "a18.h" 1 +# 63 "a14.h" 2 +# 133 "a13.h" 2 +# 1 "a16.h" 1 +# 1 "a15.h" 1 +# 251 "a15.h" +# 465 "a15.h" +# 484 "a15.h" +# 755 "a15.h" +# 911 "a15.h" +# 1388 "a15.h" +# 1408 "a15.h" +# 32 "a16.h" 2 +# 229 "a13.h" 2 +# 121 "a1.h" 2 +# 1 "a20.h" 1 +# 132 "a1.h" 2 +# 1 "a999.h" 1 +# 311 "a1.h" 2 +# 1 "a100.h" 1 +# 355 "a1.h" 2 +# 1 "a30.h" 1 +# 356 "a1.h" 2 +# 1 "a99.h" 1 +# 357 "a1.h" 2 +# 1 "a32.h" 1 +# 1 "a31.h" 1 +# 25 "a32.h" 2 +# 1 "a35.h" 1 +# 33 "a32.h" 2 +# 366 "a1.h" 2 +# 1 "version.h" 1 +# 367 "a1.h" 2 +# 50 "a4.c" 2 +# 1 "a3.h" 1 +# 1 "a12_a11.h" 1 +# 1 "a40.h" 1 +# 15 "a12_a11.h" 2 +# 1 "a42.h" 1 +# 16 "a12_a11.h" 2 +# 1 "a43.h" 1 +# 1 "a44.h" 1 +# 341 "a43.h" 2 +# 17 "a12_a11.h" 2 +# 1 "a12.h" 1 +# 1 "a47.h" 1 +# 301 "a12.h" 2 +# 18 "a12_a11.h" 2 +# 1 "a60.h" 1 +# 20 "a12_a11.h" 2 +# 1121 "a12_a11.h" +# 1205 "a12_a11.h" +# 1680 "a12_a11.h" +# 1804 "a12_a11.h" +# 1864 "a12_a11.h" +# 871 "a3.h" 2 +# 900 "a3.h" +# 1226 "a3.h" +# 1576 "a3.h" +# 1737 "a3.h" +# 1802 "a3.h" +# 1947 "a3.h" +# 1997 "a3.h" +# 2074 "a3.h" +# 2333 "a3.h" +# 2528 "a3.h" +# 2766 "a3.h" +# 3120 "a3.h" +# 3221 "a3.h" +# 3244 "a3.h" +# 3267 "a3.h" +# 3298 "a3.h" +# 3310 "a3.h" +# 3332 "a3.h" +# 3424 "a3.h" +# 3551 "a3.h" +# 3573 "a3.h" +# 3738 "a3.h" +# 3810 "a3.h" +# 4017 "a3.h" +# 4117 "a3.h" +# 4131 "a3.h" +# 51 "a4.c" 2 +# 1 "a2.h" 1 +# 217 "a2.h" +# 460 "a2.h" +# 52 "a4.c" 2 +# 1 "a80.c" 1 +# 1 "a1.h" 1 +# 370 "a1.h" +# 37 "a80.c" 2 +# 53 "a4.c" 2 +# 1 "a6.h" 1 +# 135 "a6.h" +# 150 "a6.h" +# 1 "a81.h" 1 +# 154 "a6.h" 2 +# 1 "a84_a10.h" 1 +# 155 "a6.h" 2 +# 1 "a89.h" 1 +# 156 "a6.h" 2 +# 1 "a88.h" 1 +# 122 "a88.h" +# 248 "a88.h" +# 294 "a88.h" +# 339 "a88.h" +# 157 "a6.h" 2 +# 1 "a90.h" 1 +# 158 "a6.h" 2 +# 1 "a90_a91.h" 1 +# 159 "a6.h" 2 +# 1 "a8.h" 1 +# 160 "a6.h" 2 +# 1 "a10.h" 1 +# 161 "a6.h" 2 +# 1 "a9.h" 1 +# 162 "a6.h" 2 +# 186 "a6.h" +# 219 "a6.h" +# 54 "a4.c" 2 +# 1 "a5.h" 1 +# 1 "a7.h" 1 +# 52 "a5.h" 2 +# 55 "a4.c" 2 + diff --git a/tests-std/test84.out b/tests-std/test84.out new file mode 100644 index 0000000..646eedb --- /dev/null +++ b/tests-std/test84.out @@ -0,0 +1,132 @@ +# 1 "a4.c" +# 1 "a1.h" 1 +# 1 "a11.h" 1 +# 856 "a11.h" +# 105 "a1.h" 2 +# 1 "a13.h" 1 +# 1 "a14.h" 1 +# 1 "a18.h" 1 +# 63 "a14.h" 2 +# 133 "a13.h" 2 +# 1 "a16.h" 1 +# 1 "a15.h" 1 +# 251 "a15.h" +# 465 "a15.h" +# 484 "a15.h" +# 755 "a15.h" +# 911 "a15.h" +# 1388 "a15.h" +# 1408 "a15.h" +# 32 "a16.h" 2 +# 229 "a13.h" 2 +# 121 "a1.h" 2 +# 1 "a20.h" 1 +# 132 "a1.h" 2 +# 1 "a999.h" 1 +# 311 "a1.h" 2 +# 1 "a100.h" 1 +# 355 "a1.h" 2 +# 1 "a30.h" 1 +# 356 "a1.h" 2 +# 1 "a99.h" 1 +# 357 "a1.h" 2 +# 1 "a32.h" 1 +# 1 "a31.h" 1 +# 25 "a32.h" 2 +# 1 "a35.h" 1 +# 33 "a32.h" 2 +# 366 "a1.h" 2 +# 1 "version.h" 1 +# 367 "a1.h" 2 +# 50 "a4.c" 2 +# 1 "a3.h" 1 +# 1 "a12_a11.h" 1 +# 1 "a40.h" 1 +# 15 "a12_a11.h" 2 +# 1 "a42.h" 1 +# 16 "a12_a11.h" 2 +# 1 "a43.h" 1 +# 1 "a44.h" 1 +# 341 "a43.h" 2 +# 17 "a12_a11.h" 2 +# 1 "a12.h" 1 +# 1 "a47.h" 1 +# 301 "a12.h" 2 +# 18 "a12_a11.h" 2 +# 1 "a60.h" 1 +# 20 "a12_a11.h" 2 +# 1121 "a12_a11.h" +# 1205 "a12_a11.h" +# 1680 "a12_a11.h" +# 1804 "a12_a11.h" +# 1864 "a12_a11.h" +# 871 "a3.h" 2 +# 900 "a3.h" +# 1226 "a3.h" +# 1576 "a3.h" +# 1737 "a3.h" +# 1802 "a3.h" +# 1947 "a3.h" +# 1997 "a3.h" +# 2074 "a3.h" +# 2333 "a3.h" +# 2528 "a3.h" +# 2766 "a3.h" +# 3120 "a3.h" +# 3221 "a3.h" +# 3244 "a3.h" +# 3267 "a3.h" +# 3298 "a3.h" +# 3310 "a3.h" +# 3332 "a3.h" +# 3424 "a3.h" +# 3551 "a3.h" +# 3573 "a3.h" +# 3738 "a3.h" +# 3810 "a3.h" +# 4017 "a3.h" +# 4117 "a3.h" +# 4131 "a3.h" +# 51 "a4.c" 2 +# 1 "a2.h" 1 +# 217 "a2.h" +# 460 "a2.h" +# 52 "a4.c" 2 +# 1 "a80.c" 1 +# 1 "a1.h" 1 +# 370 "a1.h" +# 37 "a80.c" 2 +# 53 "a4.c" 2 +# 1 "a6.h" 1 +# 135 "a6.h" +# 150 "a6.h" +# 1 "a81.h" 1 +# 154 "a6.h" 2 +# 1 "a84_a10.h" 1 +# 155 "a6.h" 2 +# 1 "a89.h" 1 +# 156 "a6.h" 2 +# 1 "a88.h" 1 +# 122 "a88.h" +# 248 "a88.h" +# 294 "a88.h" +# 339 "a88.h" +# 157 "a6.h" 2 +# 1 "a90.h" 1 +# 158 "a6.h" 2 +# 1 "a90_a91.h" 1 +# 159 "a6.h" 2 +# 1 "a8.h" 1 +# 160 "a6.h" 2 +# 1 "a10.h" 1 +# 161 "a6.h" 2 +# 1 "a9.h" 1 +# 162 "a6.h" 2 +# 186 "a6.h" +# 219 "a6.h" +# 54 "a4.c" 2 +# 1 "a5.h" 1 +# 1 "a7.h" 1 +# 52 "a5.h" 2 +# 55 "a4.c" 2 + diff --git a/tests-std/test85.out b/tests-std/test85.out new file mode 100644 index 0000000..f61a455 --- /dev/null +++ b/tests-std/test85.out @@ -0,0 +1,3 @@ +# 1 "a4.c" +void test0(void); +void test1(void); diff --git a/tests-std/test86.c b/tests-std/test86.c new file mode 100644 index 0000000..1b6d0de --- /dev/null +++ b/tests-std/test86.c @@ -0,0 +1,53 @@ +# 1 "a.c" + +# 1 "a.h" 1 + +int aa1; +int aa2; +void testaa(void); +# 2 "a.c" 2 + +# 1 "b.h" 1 + +int bb1; +int bb2; +# 1 "b1.h" 1 + +int b12; +int b22; +# 1 "b12.h" 1 + +int b33; +# 1 "b13.h" 1 + +int b44; + +# 1 "b14.h" 1 +int r45; +void ttt(void); +int r56; +# 4 "b13.h" 2 + + +int b55; +# 3 "b12.h" 2 + +void test66(void); +# 4 "b1.h" 2 + +void testb12(void); +# 4 "b.h" 2 + +int bb3; + + + +# 3 "a.c" 2 + +# 1 "c.h" 1 + +int c11; +int c12; +void testc1(void); +# 4 "a.c" 2 + diff --git a/tests-std/test86.out b/tests-std/test86.out new file mode 100644 index 0000000..1b6d0de --- /dev/null +++ b/tests-std/test86.out @@ -0,0 +1,53 @@ +# 1 "a.c" + +# 1 "a.h" 1 + +int aa1; +int aa2; +void testaa(void); +# 2 "a.c" 2 + +# 1 "b.h" 1 + +int bb1; +int bb2; +# 1 "b1.h" 1 + +int b12; +int b22; +# 1 "b12.h" 1 + +int b33; +# 1 "b13.h" 1 + +int b44; + +# 1 "b14.h" 1 +int r45; +void ttt(void); +int r56; +# 4 "b13.h" 2 + + +int b55; +# 3 "b12.h" 2 + +void test66(void); +# 4 "b1.h" 2 + +void testb12(void); +# 4 "b.h" 2 + +int bb3; + + + +# 3 "a.c" 2 + +# 1 "c.h" 1 + +int c11; +int c12; +void testc1(void); +# 4 "a.c" 2 + diff --git a/tests-std/test87.out b/tests-std/test87.out new file mode 100644 index 0000000..8464b84 --- /dev/null +++ b/tests-std/test87.out @@ -0,0 +1,2 @@ +enum {e0, e1}; + diff --git a/tests-std/test9.c b/tests-std/test9.c new file mode 100644 index 0000000..0c7747b --- /dev/null +++ b/tests-std/test9.c @@ -0,0 +1,9 @@ +typedef int T1 ; +typedef int T2 ; +typedef int T3; +main() { + const T1 T1; /* redeclares T1 to be an int */ + const T2 (T2); /* redeclares T2 to be an int */ + const T3; /* syntax error : missing declarator */ + } + diff --git a/tests-std/test9.out b/tests-std/test9.out new file mode 100644 index 0000000..0c7747b --- /dev/null +++ b/tests-std/test9.out @@ -0,0 +1,9 @@ +typedef int T1 ; +typedef int T2 ; +typedef int T3; +main() { + const T1 T1; /* redeclares T1 to be an int */ + const T2 (T2); /* redeclares T2 to be an int */ + const T3; /* syntax error : missing declarator */ + } +