gcc/testsuite/g++.dg/compat/eh/dtor1_main.C
raw| 1 | // PR c++/411 |
| 2 | |
| 3 | // Test that a fully-constructed base is destroyed before transferring |
| 4 | // control to the handler of a function-try-block. |
| 5 | |
| 6 | // Split into pieces for binary compatibility testing October 2002 |
| 7 | |
| 8 | // Explicit { dg-require-effective-target exceptions_enabled } so that dependent tests don't turn UNRESOLVED for '-fno-exceptions'. |
| 9 | |
| 10 | extern void dtor1_x (void); |
| 11 | |
| 12 | int |
| 13 | main () |
| 14 | { |
| 15 | dtor1_x (); |
| 16 | } |