gcc/testsuite/g++.dg/compat/eh/ctor2_main.C
raw| 1 | // PR c++/4460 |
| 2 | // Test that the cleanup for fully-constructed subobjects when a |
| 3 | // constructor throws gets the right address for a virtual base. |
| 4 | |
| 5 | // Split into pieces for binary compatibility testing October 2002 |
| 6 | |
| 7 | // Explicit { dg-require-effective-target exceptions_enabled } so that dependent tests don't turn UNRESOLVED for '-fno-exceptions'. |
| 8 | |
| 9 | extern void ctor2_x (void); |
| 10 | |
| 11 | int main () |
| 12 | { |
| 13 | ctor2_x (); |
| 14 | } |