2 // Test that we notice unfortunate handler ordering.
5 struct B: public A { };
6 struct C: private A { };
12 catch (...) { } // { dg-error "" } ... followed by others
16 catch (A*) { } // { dg-warning "" } A* before B*
17 catch (B*) { } // { dg-warning "" } A* before B*
21 catch (C*) { } // no warning; A is private base