Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / g++.old-deja / g++.other / dtor8.C
blob5f2071d5a79753524584c69373c7954bd97e963f
1 // { dg-do run  }
2 // { dg-options "-O1" }
3 // Origin: Mark Mitchell <mark@codesourcery.com>
5 int result;
7 struct S
9   S ();
10   S (const S&);
11   ~S ();
12   
13   int i;
14   double d[18];
17 S* s;
19 S::S ()
21   s = this;
24 S::~S ()
26   if (s != this)
27     result = 1;
30 inline S f ()
32   return S ();
35 int main ()
37   f ();
38   return result;