2 /* { dg-skip-if "Stack alignment is too small" { hppa*-*-hpux* } } */
3 /* { dg-require-effective-target alloca } */
11 typedef int aligned
__attribute__((aligned(ALIGNMENT
)));
12 extern int strncmp (const char *, const char *, size_t);
17 copy (char *p
, int size
)
19 __builtin_strncpy (p
, "good", size
);
27 __attribute__ ((__noinline__
))
30 char *p
= __builtin_alloca (size
+ 1);
34 if (strncmp (p
, "good", size
) != 0)
38 printf ("Failed: %s != good\n", p
);
43 if (check_int (&i
, __alignof__(i
)) != i
)
46 if (check_int (&j
, __alignof__(j
)) != j
)
56 if (check_int (&j
, __alignof__(j
)) != j
)