X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fgcc.c-torture%2Fexecute%2F20020619-1.c;fp=gcc%2Ftestsuite%2Fgcc.c-torture%2Fexecute%2F20020619-1.c;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=5ed4d00b01d0877ad5d27d10838db30d9ccf4c3c;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/gcc.c-torture/execute/20020619-1.c b/gcc/testsuite/gcc.c-torture/execute/20020619-1.c deleted file mode 100644 index 5ed4d00b..00000000 --- a/gcc/testsuite/gcc.c-torture/execute/20020619-1.c +++ /dev/null @@ -1,32 +0,0 @@ -static int ref(void) -{ - union { - char c[5]; - int i; - } u; - - __builtin_memset (&u, 0, sizeof(u)); - u.c[0] = 1; - u.c[1] = 2; - u.c[2] = 3; - u.c[3] = 4; - - return u.i; -} - -#define MAX(a,b) (a < b ? b : a) - -static int test(void) -{ - char c[MAX(5, sizeof(int))] __attribute__((aligned)) = { 1, 2, 3, 4 }; - return *(int *)c; -} - -int main() -{ - int a = test(); - int b = ref(); - if (a != b) - abort (); - return 0; -}