From: Douglas Gregor Date: Fri, 21 Aug 2009 23:32:45 +0000 (+0000) Subject: Add test taking the address of a member function template and converting it to a... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1561248f6cc4ee6dd2d227bd4586fa0054c69614;p=clang 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 --- 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; +}