* gcc.dg/torture/stackalign/builtin-apply-2.c: Fix skip-if syntax.
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / stackalign / alloca-6.c
blob301fff7a202f3ce4794e8a5841181f83b8fc164b
1 /* PR middle-end/45234 */
2 /* { dg-do run { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
3 /* { dg-additional-options "-mincoming-stack-boundary=2 -mpreferred-stack-boundary=2" } */
5 #include "check.h"
7 void
8 __attribute__ ((noinline))
9 bar (__float128 f)
11 check (&f, __alignof__(f));
14 volatile int z = 6;
16 int
17 main (void)
19 char *p = __builtin_alloca (z);
21 bar (0);
23 __builtin_strncpy (p, "good", 5);
24 if (__builtin_strncmp (p, "good", 5) != 0)
26 #ifdef DEBUG
27 p[z - 1] = '\0';
28 printf ("Failed: %s != good\n", p);
29 #endif
30 abort ();
33 return 0;