Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.jason/binding2.C

raw
1 // { dg-do assemble }
2 // Bug: g++ screws up binding levels in a switch statement with cleanups.
3
4 struct A {
5 ~A() { }
6 };
7
8 int f (int i)
9 {
10 switch (i) {
11 default:
12 A a;
13 }
14 return 1;
15 } // causes compiler segfault