repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
p3836.C
blob
c62530f69067b36657c332b588404a523eaa9d29
1
// prms-id: 3836
2
3
void f(int &i) { // ERROR - ref line
4
i = 10;
5
}
6
7
int main()
8
{
9
int i=1, j=2;
10
f(i);
11
f((int)j); // ERROR - passing in to non-const
12
if (j != 2)
13
return 1;
14
}