Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / eh / omit-frame-pointer2.C
blob78026b518430c5bf2f1c055695cc96ad2dfd1f82
1 // Reduced from PR c++/5246, PR c++/2447
2 // { dg-options "-O -fomit-frame-pointer" }
3 // { dg-do run }
5 void step (int)
7   void *sp = __builtin_alloca (0);
10 void f2 (void)
12   step (2);
13   throw int();
16 void f1 (void)
18   try
19     {
20       step (1);
21       f2 ();
22       step (-1);
23     }
24   catch (int)
25     {
26       step (3);
27     }
30 int main ()
32   f1 ();
33   return 0;