2 // Copyright (C) 1999 Free Software Foundation, Inc.
3 // Contributed by Nathan Sidwell 21 Nov 1999 <nathan@acm.org>
5 // make sure we don't call base dtors, if we failed to call the
6 // base ctor due to exception throwing
10 static bool bad = false;
14 printf ("in %s\n", __PRETTY_FUNCTION__);
25 X::X (int) throw (int)
26 {printf ("in ctor X %s\n", __PRETTY_FUNCTION__); bad = true;}
28 {printf ("in dtor X %s\n", __PRETTY_FUNCTION__); bad = true;}
37 : X(thrower ()) // throws, so X::X is never called
38 {printf ("in ctor Y%s\n", __PRETTY_FUNCTION__); bad = true;}
40 {printf ("in dtor Y%s\n", __PRETTY_FUNCTION__); bad = true;}