]> granicus.if.org Git - clang/commitdiff
Add another testcase.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 12 Nov 2014 23:43:08 +0000 (23:43 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 12 Nov 2014 23:43:08 +0000 (23:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@221833 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaTemplate/deduction.cpp

index c2abf262d6d21bbc1c5dfa7a11122c1a0e683652..d33164b45c4aa9cd63363c8b5121da03e2677085 100644 (file)
@@ -191,4 +191,13 @@ namespace PR19372 {
 
   using U = BindBack<Z, int, int>::apply<char>;
   using U = Z<char, int, int>;
+
+  namespace BetterReduction {
+    template<typename ...> struct S;
+    template<typename ...A> using X = S<A...>;
+    template<typename ...A> using Y = X<A..., A...>;
+
+    using T = Y<int>;
+    using T = S<int, int>;
+  }
 }