aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/binding2.C
blob: e56a0544b472c247d668dbb64c1577d23d78568d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Bug: g++ screws up binding levels in a switch statement with cleanups.
// Build don't link:

struct A {
  ~A() { }
};

int f (int i)
{
  switch (i) {
  default:
    A a;
  }
  return 1;
}				// causes compiler segfault