Remove outermost loop parameter.
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.dg / torture / stackalign / inline-2.c
blobfd51b5f7110931be3b2bd91269131a827a222c91
1 /* { dg-do run } */
3 #include "check.h"
5 #ifndef ALIGNMENT
6 #define ALIGNMENT 64
7 #endif
9 typedef int aligned __attribute__((aligned(ALIGNMENT)));
11 int global;
13 void
14 bar (char *p, int size)
16 __builtin_strncpy (p, "good", size);
19 static void
20 inline __attribute__((always_inline))
21 foo (int size)
23 char *p = __builtin_alloca (size + 1);
24 aligned i;
26 bar (p, size);
27 if (__builtin_strncmp (p, "good", size) != 0)
29 #ifdef DEBUG
30 p[size] = '\0';
31 printf ("Failed: %s != good\n", p);
32 #endif
33 abort ();
36 if (check_int (&i, __alignof__(i)) != i)
37 abort ();
40 int
41 main()
43 foo (5);
44 return 0;