FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / cleanup.C
blobd9adddec2e80dc7664297fd2adead644ca85a5df
1 // Bug: continue over object decl calls destructor but not constructor.
3 int c = 0;
4 int d = 0;
5 extern "C" int printf(const char *,...);
7 class Foo {
8 public:
9   Foo(){ c++; }
10   ~Foo(){ d++; }
13 int main()
15   for(int i=0;i<2;i++){
16     continue;
17     Foo bar;
18   }
19   printf ("%d %d\n", c, d);
20   if (c == d && d == 0)
21     return 0;
22   return 1;