2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / binding2.C
blob5a7328125a0faee5f7b77f5367f54e47655cf4a3
1 // { dg-do assemble  }
2 // Bug: g++ screws up binding levels in a switch statement with cleanups.
4 struct A {
5   ~A() { }
6 };
8 int f (int i)
10   switch (i) {
11   default:
12     A a;
13   }
14   return 1;
15 }                               // causes compiler segfault