X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fgcc.c-torture%2Fcompat%2Fstruct-ic.c;fp=gcc%2Ftestsuite%2Fgcc.c-torture%2Fcompat%2Fstruct-ic.c;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=7c5fa79e142fd0ff16bf31d1e5f2dd0e3564bc28;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/gcc.c-torture/compat/struct-ic.c b/gcc/testsuite/gcc.c-torture/compat/struct-ic.c deleted file mode 100644 index 7c5fa79e..00000000 --- a/gcc/testsuite/gcc.c-torture/compat/struct-ic.c +++ /dev/null @@ -1,48 +0,0 @@ -typedef struct {int a; char b;} T; - -int h (T *); -T g (T); - -#if COMPILER != 1 -h (T *x) -{ - if (x->a != 0 || x->b != 1) - abort (); -} -#endif - -#if COMPILER != 2 -T -g (T x) -{ - if (x.a != 13 || x.b != 47) - abort (); - x.a = 0; - x.b = 1; - h (&x); - return x; -} -#endif - -#if COMPILER != 1 -f () -{ - T x; - x.a = 13; - x.b = 47; - g (x); - if (x.a != 13 || x.b != 47) - abort (); - x = g (x); - if (x.a != 0 || x.b != 1) - abort (); -} -#endif - -#if COMPILER != 2 -main () -{ - f (); - exit (0); -} -#endif