diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-08-21 23:32:45 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-08-21 23:32:45 +0000 |
commit | 1561248f6cc4ee6dd2d227bd4586fa0054c69614 (patch) | |
tree | 96ce65878fc239faf80066c150f05de3723ea337 | |
parent | be1ad9279879d7cef8fb6dfc15604aaeac380dc1 (diff) |
Add test taking the address of a member function template and converting it to a member pointer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79699 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/SemaTemplate/member-function-template.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/SemaTemplate/member-function-template.cpp b/test/SemaTemplate/member-function-template.cpp index 906980ac11..217a67a618 100644 --- a/test/SemaTemplate/member-function-template.cpp +++ b/test/SemaTemplate/member-function-template.cpp @@ -28,3 +28,14 @@ void test_X_f1(X x, int i, float f) { int &ir2 = x.f1(f, i); int &ir3 = x.f1(i, i); } + +void test_X_f0_address() { + int& (X::*pm1)(int) = &X::f0; + float& (X::*pm2)(float) = &X::f0; +} + +void test_X_f1_address() { + int& (X::*pm1)(int) = &X::f1; + float& (X::*pm2)(float) = &X::f1; + int& (X::*pm3)(float, int) = &X::f1; +} |