Debian Codegraph @

gcc/testsuite/g++.dg/torture/stackalign/unwind-1.C

raw
1 /* { dg-do run { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
2
3 #include "test-unwind.h"
4
5 #if !defined __PIC__ && !defined __USING_SJLJ_EXCEPTIONS__
6 /* Test situation 1: Stack really realign without DRAP */
7 void __attribute__ ((noinline))
8 foo ()
9 {
10 int __attribute__ ((aligned(64))) a=1;
11 if (check_int (&a, __alignof__(a)) != a)
12 abort ();
13 ALTER_REGS();
14 throw a;
15 }
16 #endif