Add test for handling ptrmem_cst


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6163 91177308-0d34-0410-b5e6-96231b3b80d8
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);
+}