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;
}