Small ChangeLog tweak.
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / stackalign / nested-4.c
blob0e94d2cc52971d2e3dd1cbb6614bf1d0a2626ef4
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 n;
15 void
16 g (void)
18 __label__ lab;
19 void h (void)
21 aligned t;
22 if (check_int (&t, __alignof__(t)) != t)
23 abort ();
24 if (n+t == 0) goto lab;
26 h();
27 lab:
28 return;
31 int main()
33 g();
34 return 0;