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