X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fgcc.dg%2F990424-1.c;fp=gcc%2Ftestsuite%2Fgcc.dg%2F990424-1.c;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=00b476427f3e4814d646f808586429d5e280d431;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/gcc.dg/990424-1.c b/gcc/testsuite/gcc.dg/990424-1.c deleted file mode 100644 index 00b47642..00000000 --- a/gcc/testsuite/gcc.dg/990424-1.c +++ /dev/null @@ -1,29 +0,0 @@ -/* Test that stack alignment is preserved with pending_stack_adjust - with stdcall functions. */ - -/* { dg-do run { target i?86-*-* } } */ -/* { dg-options -mpreferred-stack-boundary=4 } */ - -void __attribute__((stdcall)) foo(int a, int b, int c); - -extern void abort (void); -extern void exit (int); - -int -main () -{ - foo(1, 2, 3); - foo(1, 2, 3); - exit (0); -} - -void __attribute__((stdcall)) -foo(int a, int b, int c) -{ - static int last_align = -1; - int dummy, align = (int)&dummy & 15; - if (last_align < 0) - last_align = align; - else if (align != last_align) - abort (); -}