Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
p3836.C
blob: 08d15624bf608c877fa926a583b299ff6e4e82a7 [
file
] [
log
] [
blame
]
// { dg-do assemble }
// prms-id: 3836
void
f
(
int
&
i
)
{
// { dg-message "" } ref line
i
=
10
;
}
int
main
()
{
int
i
=
1
,
j
=
2
;
f
(
i
);
f
((
int
)
j
);
// { dg-error "" } passing in to non-const
if
(
j
!=
2
)
return
1
;
}