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++.jason
/
redecl1.C
1
// { dg-do assemble }
2
class A
3
{
4
public:
5
A (const A& ccref);
6
friend A const re (const A& v1); // { dg-error "ambiguates" }
7
};
8
9
A // const
10
re (const A& ref) // { dg-error "new declaration" }
11
{
12
return A (ref);
13
}