Merge with main truk.
[official-gcc.git] / gcc / testsuite / g++.dg / init / ref10.C
blob7a280dd41e722c14fe9ebdc468415d7e802f63f0
1 // PR c++/13478
3 struct A {};
4 struct B : protected A {
5     B() {}
6     B(const A& ) {}
7 private:
8     B(const B& ) {}
9 };
11 void foo(const A* ap)
13   const B& br = *ap;