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" }
}