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
decl.c (create_array_type_for_decl): Add location_t parameter and use it.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
p3836.C
blob
08d15624bf608c877fa926a583b299ff6e4e82a7
1
// { dg-do assemble }
2
// prms-id: 3836
3
4
void f(int &i) { // { dg-message "" } ref line
5
i = 10;
6
}
7
8
int main()
9
{
10
int i=1, j=2;
11
f(i);
12
f((int)j); // { dg-error "" } passing in to non-const
13
if (j != 2)
14
return 1;
15
}