diff options
-rw-r--r-- | test/C++Frontend/pointer_method.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/C++Frontend/pointer_method.cpp b/test/C++Frontend/pointer_method.cpp new file mode 100644 index 0000000..d499a7e --- /dev/null +++ b/test/C++Frontend/pointer_method.cpp @@ -0,0 +1,8 @@ +struct B { int i(); int j(); }; + +void foo(int (B::*Fn)()); + +void test() { + foo(&B::i); + foo(&B::j); +} |