Remove outermost loop parameter.
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / torture / stackalign / eh-global-1.C
blob2692f947c7bb046fb50f8a3d1d748e7c6c34eb27
1 /* { dg-do run } */
3 #include "check.h"
5 #ifndef ALIGNMENT
6 #define ALIGNMENT       64
7 #endif
9 typedef int aligned __attribute__((aligned(ALIGNMENT)));
11 int global;
13 class Base {};
15 struct A : virtual public Base
17   A() {}
20 struct B {};
22 void
23 foo (void) throw (B,A)
25   aligned i;
27   if (check_int (&i,  __alignof__(i)) != i)
28     abort ();
30   throw A();
33 int
34 main()
36   try { foo (); }
37   catch (A& a) { }
38   return 0;