2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / cleanup2.C
blob976b86411889f2849d05ce45aebc3ef86ea99846
1 // { dg-do run  }
2 // { dg-options "-O -fno-exceptions -w" }
3 // Origin: Bryan Scattergood <bryan@fsel.com>
5 extern "C" void abort();
7 class A
9 public:
10   A();
11   ~A();
12   int foo();
15 A::A() {}
16 A::~A() { abort (); }
17 int A::foo() {}
19 extern int f()
21   return 0;
24 int main()
26   return ((f() != 0) ? A().foo() : 0);