commit | 6736dce15024ac72468fc94105a7681df70c76c1 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Mon May 12 23:34:59 2003 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Mon May 12 23:34:59 2003 +0000 |
tree | 4f1a79fc79dee8794599607b9123396df0036bee | |
parent | 4c10acae4d70486677ed5bf75776212d2ff8e5b1 [diff] |
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); +}