blob: c62530f69067b36657c332b588404a523eaa9d29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// prms-id: 3836
void f(int &i) { // ERROR - ref line
i = 10;
}
int main()
{
int i=1, j=2;
f(i);
f((int)j); // ERROR - passing in to non-const
if (j != 2)
return 1;
}
|