Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wunused-parm-7.C
blob: ff1dda537d621cac9d92a3211dc3ae8d9202498e [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
// { dg-options "-Wunused-but-set-parameter" }
template
<
typename
...
Ts
>
void
sink
(
Ts
...);
struct
A
{
int
i
;
};
template
<
int
...
I
>
void
f
(
A a
)
{
return
sink
((
a
.
i
+
I
)...);
}
int
main
()
{
f
<>(
A
());
}