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
Sync usage with man page.
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
inherit
/
access2.C
blob
24779945003edaf476f8f864db6d91d6d6cffd73
1
// Test that a base doesn't get special rights to convert to itself.
2
3
struct A {
4
void f ();
5
};
6
7
struct B: private A { };
8
9
B b;
10
11
void A::f ()
12
{
13
A* ap = &b; // { dg-error "base|inherit" "" }
14
}