Sign in
llvm
/
llvm-archive
/
8a078a762a98ba34ad83dc2c15e5ff2b86792d78
/
.
/
llvm-gcc-4.2
/
llvmgcc42-2326.9
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
binding2.C
blob: 5a7328125a0faee5f7b77f5367f54e47655cf4a3 [
file
] [
log
] [
blame
]
// { dg-do assemble }
// Bug: g++ screws up binding levels in a switch statement with cleanups.
struct
A
{
~
A
()
{
}
};
int
f
(
int
i
)
{
switch
(
i
)
{
default
:
A a
;
}
return
1
;
}
// causes compiler segfault