]> granicus.if.org Git - clang/commitdiff
Regression test for PR12699
authorSerge Pavlov <sepavloff@gmail.com>
Mon, 5 Aug 2013 18:38:16 +0000 (18:38 +0000)
committerSerge Pavlov <sepavloff@gmail.com>
Mon, 5 Aug 2013 18:38:16 +0000 (18:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187734 91177308-0d34-0410-b5e6-96231b3b80d8

test/CXX/temp/temp.decls/temp.variadic/sizeofpack.cpp

index 6a63b029de42836723e35293623c53cee2102bf5..4960a2bac20a8974080016c2f11934b4109647e0 100644 (file)
@@ -175,3 +175,29 @@ namespace pr15112
 
   auto c1 = mkcoords<cpu>(0ul, 0ul, 0ul);
 }
+
+
+namespace pr12699 {
+
+template<bool B>
+struct bool_constant
+{
+  static const bool value = B;
+};
+
+template<typename... A>
+struct F
+{
+  template<typename... B>
+    using SameSize = bool_constant<sizeof...(A) == sizeof...(B)>;
+
+  template<typename... B, typename = SameSize<B...>>
+  F(B...) { }
+};
+
+void func()
+{
+  F<int> f1(3);
+}
+
+}