Small ChangeLog tweak.
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / stackalign / inline-1.c
blob9f3db0359e54b9d983fccb5cc5808b9d3f49aa2d
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-*-* } "*" "" } */
5 #include "check.h"
7 #ifndef ALIGNMENT
8 #define ALIGNMENT 64
9 #endif
11 typedef int aligned __attribute__((aligned(ALIGNMENT)));
13 int global;
15 static void
16 inline __attribute__((always_inline))
17 foo (void)
19 aligned i;
21 if (check_int (&i, __alignof__(i)) != i)
22 abort ();
25 int
26 main()
28 foo ();
29 return 0;