repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wunused-parm-7.C
blob
ff1dda537d621cac9d92a3211dc3ae8d9202498e
1
// { dg-do compile { target c++11 } }
2
// { dg-options "-Wunused-but-set-parameter" }
3
4
template <typename... Ts> void sink(Ts...);
5
6
struct A { int i; };
7
8
template <int... I>
9
void f(A a)
10
{
11
return sink((a.i + I)...);
12
}
13
14
int main()
15
{
16
f<>(A());
17
}