X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fgcc.c-torture%2Fexecute%2Falloca-1.c;fp=gcc%2Ftestsuite%2Fgcc.c-torture%2Fexecute%2Falloca-1.c;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=a8d1384c6ecebb1029153a52a7df56741cbd4dde;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/gcc.c-torture/execute/alloca-1.c b/gcc/testsuite/gcc.c-torture/execute/alloca-1.c deleted file mode 100644 index a8d1384c..00000000 --- a/gcc/testsuite/gcc.c-torture/execute/alloca-1.c +++ /dev/null @@ -1,21 +0,0 @@ -/* Verify that alloca storage is sufficiently aligned. */ -/* ??? May fail if BIGGEST_ALIGNMENT > STACK_BOUNDARY. Which, I guess - can only happen on !STRICT_ALIGNMENT targets. */ - -typedef __SIZE_TYPE__ size_t; - -struct dummy { int x __attribute__((aligned)); }; -#define BIGGEST_ALIGNMENT __alignof__(struct dummy) - -_Bool foo(void) -{ - char *p = __builtin_alloca(32); - return ((size_t)p & (BIGGEST_ALIGNMENT - 1)) == 0; -} - -int main() -{ - if (!foo()) - abort (); - return 0; -}