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 | da21f27e09ac9deab76289b93d0b55966f8b2bcd (patch) | |
tree | c93653ea33a6ae84564d4bbe641e48f7c4cdc2f0 | |
parent | c8f625b1eb4c00cd4baf854e7d5382fa792be4da (diff) | |
download | bcm5719-llvm-da21f27e09ac9deab76289b93d0b55966f8b2bcd.tar.gz bcm5719-llvm-da21f27e09ac9deab76289b93d0b55966f8b2bcd.zip |
Add test taking the address of a member function template and converting it to a member pointer.
llvm-svn: 79699
-rw-r--r-- | clang/test/SemaTemplate/member-function-template.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/SemaTemplate/member-function-template.cpp b/clang/test/SemaTemplate/member-function-template.cpp index 906980ac11a..217a67a6187 100644 --- a/clang/test/SemaTemplate/member-function-template.cpp +++ b/clang/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; +} |