Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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
()
{}