111
|
1 /* { dg-do run } */
|
|
2 /* { dg-options "-gdwarf-2" } */
|
|
3 /* { dg-skip-if "No Dwarf" { { *-*-aix* hppa*-*-hpux* } && { ! hppa*64*-*-* } } } */
|
131
|
4 /* { dg-require-effective-target alloca } */
|
111
|
5
|
|
6 /* This was a bug on x86-darwin, where the register numbering for SP
|
|
7 and BP was swapped (it's easy to do because on that port it's
|
|
8 different for eh_frame and debug_frame). */
|
|
9
|
|
10 #include <stdlib.h>
|
|
11
|
|
12 void f1(int t)
|
|
13 {
|
|
14 char u[t];
|
|
15 throw 1;
|
|
16 }
|
|
17
|
|
18 int main()
|
|
19 {
|
|
20 bool b = true;
|
|
21 try {
|
|
22 f1(100);
|
|
23 } catch (int x) {
|
|
24 if (b)
|
|
25 exit (0);
|
|
26 }
|
|
27 abort ();
|
|
28 }
|