repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2012-01-27 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
init
/
ref10.C
blob
7a280dd41e722c14fe9ebdc468415d7e802f63f0
1
// PR c++/13478
2
3
struct A {};
4
struct B : protected A {
5
B() {}
6
B(const A& ) {}
7
private:
8
B(const B& ) {}
9
};
10
11
void foo(const A* ap)
12
{
13
const B& br = *ap;
14
}