repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
parse
/
friend4.C
blob
5eca512e187f9d8a0207bfa8d53a040ef4f6529c
1
// { dg-do compile }
2
3
// PR c++/4100
4
// You can't use friend when defining a class.
5
6
class A {
7
friend class B { }; // { dg-error "friend" }
8
};