From 2054529c90eee087553078a6edbeaad5dd122824 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 12 May 2003 23:34:59 +0000 Subject: [PATCH] Add test for handling ptrmem_cst llvm-svn: 6163 --- test/Regression/C++Frontend/pointer_method.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/Regression/C++Frontend/pointer_method.cpp diff --git a/test/Regression/C++Frontend/pointer_method.cpp b/test/Regression/C++Frontend/pointer_method.cpp new file mode 100644 index 00000000000..d499a7ef099 --- /dev/null +++ b/test/Regression/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); +}