OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [inherit/] [access6.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/28588
2
 
3
class Foo {
4
  static void f(); // { dg-error "private" }
5
  static void f(int);
6
  static void g(); // { dg-error "private" }
7
};
8
 
9
void h()
10
{
11
  Foo foo;
12
  void (*f)();
13
  f = foo.f; // { dg-error "context" }
14
  f = foo.g; // { dg-error "context" }
15
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.