1 #include <testsuite_hooks.h>
3 // Test related to PR libstdc++/105387
4 // Check that pointer-to-member type exceptions can still be caught with -frtti.
5 // { dg-require-effective-target rtti }
7 void test_catch_ptr_to_member()
9 bool exception_thrown
= false;
14 catch (const int X::*) {
15 exception_thrown
= true;
18 VERIFY(exception_thrown
);
23 test_catch_ptr_to_member();