Regression test for PR12699

llvm-svn: 187734
This commit is contained in:
Serge Pavlov 2013-08-05 18:38:16 +00:00
parent bace606657
commit 518b26cdcd
1 changed files with 26 additions and 0 deletions

View 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);
}
}