Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wunused-parm-4.C
blob: fbad380f66c04f7743165e15de69581072556171 [
file
] [
log
] [
blame
]
// PR c++/47783
// { dg-do compile }
// { dg-options "-Wunused -W" }
struct
R
{
int
&
i
;
};
void
foo
(
R r
,
int
&
s
)
{
r
.
i
=
7
;
s
=
8
;
}
int
bar
()
{
int
x
=
1
,
y
=
1
;
R r
=
{
x
};
foo
(
r
,
y
);
return
x
+
y
;
}