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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [warn/] [Woverloaded-1.C] - Blame information for rev 856

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

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-options "-Woverloaded-virtual" } */
2
 
3
class Base {
4
public:
5
  virtual ~Base() {
6
  }
7
};
8
 
9
class Derived: public Base {
10
public:
11
  int Base() { // There should be no error here.
12
    return 5;
13
  }
14
};
15
 
16
int main() {
17
}

powered by: WebSVN 2.1.0

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