1// { dg-do run  }
2// Bug: continue over object decl calls destructor but not constructor.
3
4int c = 0;
5int d = 0;
6extern "C" int printf(const char *,...);
7
8class Foo {
9public:
10  Foo(){ c++; }
11  ~Foo(){ d++; }
12};
13
14int main()
15{
16  for(int i=0;i<2;i++){
17    continue;
18    Foo bar;
19  }
20  printf ("%d %d\n", c, d);
21  if (c == d && d == 0)
22    return 0;
23  return 1;
24}
25