diff options
Diffstat (limited to 'test_cases/info_tests/member/pointer_to_member.cc')
-rw-r--r-- | test_cases/info_tests/member/pointer_to_member.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test_cases/info_tests/member/pointer_to_member.cc b/test_cases/info_tests/member/pointer_to_member.cc index 5e5321c..20f9dcb 100644 --- a/test_cases/info_tests/member/pointer_to_member.cc +++ b/test_cases/info_tests/member/pointer_to_member.cc @@ -21,6 +21,9 @@ int (S::*s7)(); int (S::*s8)[7]; // declare s9 as volatile pointer to member of class S const int const int S::* volatile s9; +// declare s10 as function (pointer to member of class S int) returning int +int s10(int S::*); +int s10(int S::*) { return 0; } struct X { void f(int); |