Add test for handling ptrmem_cst
authorChris Lattner <sabre@nondot.org>
Mon, 12 May 2003 23:34:59 +0000 (23:34 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 12 May 2003 23:34:59 +0000 (23:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6163 91177308-0d34-0410-b5e6-96231b3b80d8

test/C++Frontend/pointer_method.cpp [new file with mode: 0644]

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