OSDN Git Service

PR c++/47277
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / init / value5.C
1 // PR c++/38232
2
3 class base {
4  public:
5   base();
6   virtual ~base();
7
8  private:
9   int& int_ref;  // initialized by base ctor, not visible here
10 };
11
12 class derived : public base {
13 };
14
15 base *make_derived() {
16   return new derived();
17 }