r187734 - Regression test for PR12699

Serge Pavlov sepavloff at gmail.com
Mon Aug 5 11:38:17 PDT 2013


Author: sepavloff
Date: Mon Aug  5 13:38:16 2013
New Revision: 187734

URL: http://llvm.org/viewvc/llvm-project?rev=187734&view=rev
Log:
Regression test for PR12699

Modified:
    cfe/trunk/test/CXX/temp/temp.decls/temp.variadic/sizeofpack.cpp

Modified: cfe/trunk/test/CXX/temp/temp.decls/temp.variadic/sizeofpack.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/temp/temp.decls/temp.variadic/sizeofpack.cpp?rev=187734&r1=187733&r2=187734&view=diff
==============================================================================
--- cfe/trunk/test/CXX/temp/temp.decls/temp.variadic/sizeofpack.cpp (original)
+++ cfe/trunk/test/CXX/temp/temp.decls/temp.variadic/sizeofpack.cpp Mon Aug  5 13:38:16 2013
@@ -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);
+}
+
+}





More information about the cfe-commits mailing list