]> granicus.if.org Git - clang/commitdiff
Add test taking the address of a member function template and converting it to a...
authorDouglas Gregor <dgregor@apple.com>
Fri, 21 Aug 2009 23:32:45 +0000 (23:32 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 21 Aug 2009 23:32:45 +0000 (23:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79699 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaTemplate/member-function-template.cpp

index 906980ac11ae70db0378ad17fc19fc55fdf298ea..217a67a618752993bb435367ac1ca4107e045a03 100644 (file)
@@ -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;
+}