r290926 - Remove accidentally-added lines in r290923 test, and add another testcase.

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 3 18:03:39 PST 2017


Author: rsmith
Date: Tue Jan  3 20:03:39 2017
New Revision: 290926

URL: http://llvm.org/viewvc/llvm-project?rev=290926&view=rev
Log:
Remove accidentally-added lines in r290923 test, and add another testcase.

Modified:
    cfe/trunk/test/SemaTemplate/deduction.cpp

Modified: cfe/trunk/test/SemaTemplate/deduction.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaTemplate/deduction.cpp?rev=290926&r1=290925&r2=290926&view=diff
==============================================================================
--- cfe/trunk/test/SemaTemplate/deduction.cpp (original)
+++ cfe/trunk/test/SemaTemplate/deduction.cpp Tue Jan  3 20:03:39 2017
@@ -385,8 +385,6 @@ namespace overload_vs_pack {
 
   int n1 = g1(X<int, float>(), f, g); // expected-error {{no matching function}}
   int n2 = g2(x<int, float>, f, g); // expected-error {{no matching function}}
-  int n3 = g1(X<int, float, double, char>(), f);
-  int n4 = g2(x<int, float, double, long>, f);
 
   int &a1 = h1<double>(0); // ok, skip deduction for 'f's, deduce matching value from 'g'
   int &a2 = h2<double>(0);
@@ -399,4 +397,13 @@ namespace overload_vs_pack {
 
   template<typename ...T> int partial_deduction_2(void (*...f)(T), ...); // expected-note {{deduced incomplete pack <(no value), double> for template parameter 'T'}}
   int pd2 = partial_deduction_2(f, g); // expected-error {{no matching function}}
+
+  namespace cwg_example {
+    void f(char, char);
+    void f(int, int);
+    void x(int, char);
+
+    template<typename T, typename ...U> void j(void(*)(U...), void (*...fns)(T, U));
+    void test() { j(x, f, x); }
+  }
 }




More information about the cfe-commits mailing list