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
Fix typo in test case
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
ref1.C
blob
b6d82aa25ca4cddb23d4aee26b0cfa5e2ab53726
1
// Build don't link:
2
3
int f();
4
5
void g()
6
{
7
const int& i = f(); // OK
8
int& j = f(); // ERROR - initialization of non-const reference
9
const volatile int& k = f(); // ERROR - initialization of volatile ref
10
}