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
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wunused-parm-4.C
blob
fbad380f66c04f7743165e15de69581072556171
1
// PR c++/47783
2
// { dg-do compile }
3
// { dg-options "-Wunused -W" }
4
5
struct R
6
{
7
int &i;
8
};
9
10
void
11
foo (R r, int &s)
12
{
13
r.i = 7;
14
s = 8;
15
}
16
17
int
18
bar ()
19
{
20
int x = 1, y = 1;
21
R r = { x };
22
foo (r, y);
23
return x + y;
24
}