summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-variadic.C
blob: 5d0ad05941e071a35c862a5777e5e7927327db6d (plain)
1
2
3
4
5
6
7
8
9
// { dg-options -std=c++0x }
template<class... T>
constexpr bool variadics(T&&...) { return true; }

struct IsLiteral {};

constexpr bool variadic_var = variadics(0, true, 1.2, IsLiteral{}); // Error, so below

int main() {}