1 /* { dg-do run } */
2 /* { dg-skip-if "Stack alignment is too small" { hppa*-*-hpux* } } */
3 /* { dg-skip-if "Stack alignment causes use of alloca" { nvptx-*-* } } */
4 
5 #include "check.h"
6 
7 #ifndef ALIGNMENT
8 #define ALIGNMENT	64
9 #endif
10 
11 typedef int aligned __attribute__((aligned(ALIGNMENT)));
12 
13 int global;
14 
15 static void
16 inline __attribute__((always_inline))
foo(void)17 foo (void)
18 {
19   aligned i;
20 
21   if (check_int (&i,  __alignof__(i)) != i)
22     abort ();
23 }
24 
25 int
main()26 main()
27 {
28   foo ();
29   return 0;
30 }
31