☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
binding2.C
☽
☼
gcc/testsuite/g++.old-deja/g++.jason/binding2.C
code
plain
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