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