Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
variadic100.C
blob: 502601f87415b23d43f0dea0c34463ba7310b93a [
file
] [
log
] [
blame
]
// PR c++/43143
// { dg-do compile { target c++11 } }
template
<
typename
T
>
T
&&
declval
();
template
<
class
T
,
class
...
Args
>
void
test
()
{
T t
(
declval
<
Args
>()...);
}
int
main
()
{
test
<
const
int
>();
// OK
test
<
int
[
23
]>();
// Error
}