1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
extern "C" void exit (int); extern "C" void abort (void); #include "ctor2.h" int r; void ctor2_x () { try { DerivedStream str; } catch (...) { } if (r != 0) abort (); exit (0); }