| OLD | NEW |
| 1 // Without explicit prototype, we need to assume the builtin can | 1 // Without explicit prototype, we need to assume the builtin can |
| 2 // throw for builtins that at least on one platform can throw. | 2 // throw for builtins that at least on one platform can throw. |
| 3 // { dg-do compile } | 3 // { dg-do compile } |
| 4 // { dg-options "-fdump-tree-eh" } | 4 // { dg-options "-fdump-tree-eh" } |
| 5 | 5 |
| 6 struct A { A (); ~A (); int i; }; | 6 struct A { A (); ~A (); int i; }; |
| 7 | 7 |
| 8 int | 8 int |
| 9 bar () | 9 bar () |
| 10 { | 10 { |
| 11 A a; | 11 A a; |
| 12 __builtin_printf ("foo %d\n", a.i); | 12 __builtin_printf ("foo %d\n", a.i); |
| 13 } | 13 } |
| 14 | 14 |
| 15 /* { dg-final { scan-tree-dump-times "resx 1" 1 "eh" } } */ | 15 /* { dg-final { scan-tree-dump-times "resx" 1 "eh" } } */ |
| 16 /* { dg-final { cleanup-tree-dump "eh" } } */ | 16 /* { dg-final { cleanup-tree-dump "eh" } } */ |
| OLD | NEW |