Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wexceptions1.C
blob: af140fd0dc2cae32253add756aaa649dd3d5158e [
file
] [
log
] [
blame
]
// PR c++/97675
struct
Base
{
};
struct
Child
:
Base
{
};
int
main
()
{
try
{
throw
Child
();
}
catch
(
Base
const
&)
{
}
catch
(
Child
const
&)
{
}
// { dg-warning "exception of type .Child. will be caught by earlier handler" }
}