summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/ref2.C
blob: 231ea047fff0f84b3e5c002e70a75e6a368dd2bc (plain)
1
2
3
4
5
6
7
8
9
10
struct Base {
        Base();
  Base(const Base &);
  Base & operator = (const Base &);
};

struct Derived : public Base {};

Derived derived();
const Base &b = derived();