summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/eh59.C
blob: f2f2bb3bc732588a03beaa0a8f76045646156d64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// { dg-do run  }
// { dg-options "-O -funroll-loops" }

struct A {
  ~A();
};

void foo();

int main() {
  for (int i=0;i<4;i++) {
    A a;
    foo();
  }
}

void foo() { }
A::~A() { }