OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
ref1.C
1
// { dg-do assemble }
2
3
int f();
4
5
void g()
6
{
7
const int& i = f(); // OK
8
int& j = f(); // { dg-error "" } initialization of non-const reference
9
const volatile int& k = f(); // { dg-error "" } initialization of volatile ref
10
}