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