blob: 93cfc67fff2555962a1b1d48d56da5f2093f002a [file] [log] [blame]
extern "C" { void abort (void);}
int foo (int);
class A
{
int x;
public:
A() { x = 2304; }
~A() { if (x != 2305) abort (); }
void inc () { x++; }
};
int main()
{
A x;
x.inc();
try
{
foo (0);
abort (); // Should not execute
}
catch (int e)
{
return 0;
}
}