Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
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
());
}