2009-07-17 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / stackalign / inline-1.c
blob11e71c60a4cfff1572350aefc6e87e73a4272b59
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 static void
14 inline __attribute__((always_inline))
15 foo (void)
17 aligned i;
19 if (check_int (&i, __alignof__(i)) != i)
20 abort ();
23 int
24 main()
26 foo ();
27 return 0;