Debian Codegraph @

gcc/testsuite/gcc.dg/torture/stackalign/nested-4.c

raw
1 /* { dg-do run } */
2 /* { dg-skip-if "Stack alignment is too small" { hppa*-*-hpux* } } */
3 /* { dg-require-effective-target nonlocal_goto } */
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 n;
14
15 void
16 g (void)
17 {
18 __label__ lab;
19 void h (void)
20 {
21 aligned t;
22 if (check_int (&t, __alignof__(t)) != t)
23 abort ();
24 if (n+t == 0) goto lab;
25 }
26 h();
27 lab:
28 return;
29 }
30
31 int main()
32 {
33 g();
34 return 0;
35 }