2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / cleanup1.C
blob27eb8ede486b3672c2779e397f0cdf78d19f8327
1 // { dg-do run  }
2 // Bug: fold is too eager about pushing down CLEANUP_POINT_EXPR.
4 int d;
6 struct A {
7   A() { }
8   ~A() { d = 1; }
9 };
11 int f (const A& a)
13   return 1;
16 int main ()
18   if (f (A()) && d == 0)
19     return 0;
20   return 1;