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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.brendan/] [arm2.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do assemble  }
2
// GROUPS passed ARM-compliance
3
// ARM 9.4 ``There cannot be a static and a nonstatic member function
4
//           with the same name and the same argument types.''
5
//
6
// The trick is to make sure it's caught with both orders (static,
7
// then normal, and vice-versa.
8
 
9
class X {
10
public:
11
  int foo();            // { dg-error "with" }
12
  static int foo();     // error: redeclaration// { dg-error "overloaded" } .*
13
};
14
 
15
class Y {
16
public:
17
   static int foo();    // { dg-error "with" }
18
  int foo();            // error: redeclaration// { dg-error "overloaded" } .*
19
};

powered by: WebSVN 2.1.0

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