Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
variadic-ex12.C
blob: bc55b2d55f6b0a53dbe08ead627d4ee5f61f0f93 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
template
<
typename
...
Types
>
void
f
(
Types
...
rest
);
template
<
typename
...
Types
>
void
g
(
Types
...
rest
)
{
f
(&
rest
...);
// ``&rest...'' is a pack expansion, ``&rest'' is its pattern
}