Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
variadic102.C
blob: 9214b01c46e0b748cd69b246c6b41b1ee6ddce24 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
struct
nAny
{
template
<
class
...
T
>
nAny
(
T
&&...);
};
template
<
class
T
>
T
&&
create
();
template
<
class
T
,
class
...
Args
>
void
test
()
{
T t
(
create
<
Args
>()...);
(
void
)
t
;
}
int
main
()
{
test
<nAny>
();
}