Regression test for PR12699
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187734 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CXX/temp/temp.decls/temp.variadic/sizeofpack.cpp b/test/CXX/temp/temp.decls/temp.variadic/sizeofpack.cpp
index 6a63b02..4960a2b 100644
--- a/test/CXX/temp/temp.decls/temp.variadic/sizeofpack.cpp
+++ b/test/CXX/temp/temp.decls/temp.variadic/sizeofpack.cpp
@@ -175,3 +175,29 @@
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);
+}
+
+}