Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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" }
}