2009-07-17 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / stackalign / global-1.c
blob284daad0eafe59f7b4f67a33f7a72bf39784bd99
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 foo (void)
16 aligned i;
18 if (check_int (&i, __alignof__(i)) != i)
19 abort ();
22 int
23 main()
25 foo ();
26 return 0;