aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/inherit/access6.C
blob: 7645c2d5e0db6752e663489197e83e6e94c8f210 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR c++/28588

class Foo { 
  static void f(); // { dg-error "private" }
  static void f(int);
  static void g(); // { dg-error "private" }
};

void h()
{
  Foo foo;
  void (*f)();
  f = foo.f; // { dg-error "context" }
  f = foo.g; // { dg-error "context" }
}