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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [overload/] [defarg3.C] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/37971
2
// { dg-do compile }
3
 
4
class C {
5
private:
6
  static int f(int); // { dg-error "private" }
7
  static int f(char);
8
};
9
 
10
class D {
11
public:
12
  /* C::f is inaccessible, so this is an error, even if this function
13
     is never called.  */
14
  static void g(int (*)(int) = C::f); // { dg-error "context" }
15
};

powered by: WebSVN 2.1.0

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