Sign in
gnu
/
gcc
/
4aef14b09557ce072f1269bd8a05fa2b1df0eda2
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
eh16.C
blob: 7a985908f3ba468e9a38196b4088f5d52955abd9 [
file
] [
log
] [
blame
]
// { dg-do run { xfail sparc64-*-elf arm-*-pe } }
// { dg-options "-fexceptions" }
int
e
=
1
;
struct
A
{
~
A
()
{
--
e
;
}
};
struct
B
{
A a
;
B
()
{
throw
1
;
}
};
int
main
()
{
try
{
B b
;
}
catch
(...)
{
return
e
;
}
return
1
;
}