2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / parse / ref1.C
blobd1dffb0670092345a5ea0dba6c7d47b21010053f
1 // PR c++/6402
2 // Origin: Wolfgang Bangerth <wolfgang@dealii.org>
3 // { dg-do compile }
5 class A
7     A (const A&);
8   public:
9     A();
12 struct B { A a; };
14 struct C : public B
16     void foo() { const A &ref = B::a; } // taking reference, not a copy!