Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / torture / stackalign / unwind-1.C
blobd61b1ba7558bc5e6c90aec9f0a2e1af75b5dacc1
1 /* { dg-do run { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
3 #include "test-unwind.h"
5 #if !defined __PIC__ && !defined __USING_SJLJ_EXCEPTIONS__
6 /* Test situation 1: Stack really realign without DRAP */
7 void __attribute__ ((noinline))
8 foo ()
10   int __attribute__ ((aligned(64))) a=1;
11   if (check_int (&a,  __alignof__(a)) != a)
12     abort ();
13   ALTER_REGS();
14   throw a;
16 #endif