Sign in
gnu
/
gcc
/
refs/tags/releases/gcc-4.6.0
/
.
/
gcc
/
testsuite
/
g++.dg
/
eh
/
pr41819.C
blob: 07894a2995381354544ec1c8d96a5c77d0120f07 [
file
] [
log
] [
blame
]
// { dg-do compile }
// { dg-options "-fno-exceptions" }
struct
S
{
~
S
();
};
extern
void
bar
();
void
f0
()
{
S s
;
bar
();
}
void
f1
()
{
try
{}
catch
(...)
{}
// { dg-error "" }
}
void
f2
()
throw
(
int
)
{
bar
();
}