SH: Fix cost estimation of mem load/store
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / stackalign / nested-4.c
bloba46104b9df0a8f07271378328f9ddfddae08b709
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;