X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fgcc.dg%2F20010822-1.c;fp=gcc%2Ftestsuite%2Fgcc.dg%2F20010822-1.c;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=b1c1cd45a90109f3b78e7274f53b1bcb75cf670c;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/gcc.dg/20010822-1.c b/gcc/testsuite/gcc.dg/20010822-1.c deleted file mode 100644 index b1c1cd45..00000000 --- a/gcc/testsuite/gcc.dg/20010822-1.c +++ /dev/null @@ -1,44 +0,0 @@ -/* { dg-do run } */ -/* { dg-options "-Os" } */ - -extern void abort (void); - -void foo (unsigned long x) -{ -} - -typedef struct a { - volatile unsigned int a1, a2, a3, a4, a5; -} *A; -typedef struct { - volatile unsigned int b1, b2, b3, b4, b5; -} *B; -struct C { - void *c1, *c2; - A c3; - unsigned char c4; -}; - -void -bar (struct C *c, unsigned int *d) -{ - *d = *d | 1; - ((c->c4 >= 2) - ? (*(volatile unsigned int *) ((void *)(&((A)c->c3)->a5)) = *d) - : (*(volatile unsigned int *) ((void *)(&((B)c->c3)->b5)) = *d)); - - foo (50); -} - -int main (void) -{ - struct a a; - struct C c; - unsigned int d = 8; - c.c3 = &a; - c.c4 = 0; - bar (&c, &d); - if (a.a5 != 9) - abort (); - return 0; -}