[cfe-commits] r79699 - /cfe/trunk/test/SemaTemplate/member-function-template.cpp
Douglas Gregor
dgregor at apple.com
Fri Aug 21 16:32:45 PDT 2009
Author: dgregor
Date: Fri Aug 21 18:32:45 2009
New Revision: 79699
URL: http://llvm.org/viewvc/llvm-project?rev=79699&view=rev
Log:
Add test taking the address of a member function template and converting it to a member pointer.
Modified:
cfe/trunk/test/SemaTemplate/member-function-template.cpp
Modified: cfe/trunk/test/SemaTemplate/member-function-template.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaTemplate/member-function-template.cpp?rev=79699&r1=79698&r2=79699&view=diff
==============================================================================
--- cfe/trunk/test/SemaTemplate/member-function-template.cpp (original)
+++ cfe/trunk/test/SemaTemplate/member-function-template.cpp Fri Aug 21 18:32:45 2009
@@ -28,3 +28,14 @@
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;
+}
More information about the cfe-commits
mailing list