summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/inherit/access7.C
blob: 4e2db1479b7501e262e9fcb4155e852567c37da1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
struct B {
  static void f();
};

template <typename T>
struct D : private B {
  void g() {
    f();
  }
};
  
void h() {
  D<int> d;
  d.g();
}