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