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
PR c++/34774
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
inherit
/
access2.C
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
}