diff options
author | Chris Lattner <sabre@nondot.org> | 2003-05-12 23:34:59 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-05-12 23:34:59 +0000 |
commit | 6736dce15024ac72468fc94105a7681df70c76c1 (patch) | |
tree | 4f1a79fc79dee8794599607b9123396df0036bee /test | |
parent | 4c10acae4d70486677ed5bf75776212d2ff8e5b1 (diff) | |
download | external_llvm-6736dce15024ac72468fc94105a7681df70c76c1.zip external_llvm-6736dce15024ac72468fc94105a7681df70c76c1.tar.gz external_llvm-6736dce15024ac72468fc94105a7681df70c76c1.tar.bz2 |
Add test for handling ptrmem_cst
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6163 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/C++Frontend/pointer_method.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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); +} |