Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-variadic.C
blob: 495c6e2b145f01024aac2d08947246cc251e1797 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
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
()
{}