[llvm-commits] CVS: llvm/test/Regression/C++Frontend/pointer_method.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon May 12 18:36:01 PDT 2003
Changes in directory llvm/test/Regression/C++Frontend:
pointer_method.cpp added (r1.1)
---
Log message:
Add test for handling ptrmem_cst
---
Diffs of the changes:
Index: llvm/test/Regression/C++Frontend/pointer_method.cpp
diff -c /dev/null llvm/test/Regression/C++Frontend/pointer_method.cpp:1.1
*** /dev/null Mon May 12 18:35:09 2003
--- llvm/test/Regression/C++Frontend/pointer_method.cpp Mon May 12 18:34:59 2003
***************
*** 0 ****
--- 1,8 ----
+ struct B { int i(); int j(); };
+
+ void foo(int (B::*Fn)());
+
+ void test() {
+ foo(&B::i);
+ foo(&B::j);
+ }
More information about the llvm-commits
mailing list