OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.bugs/] [900210_10.C] - Blame information for rev 437

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

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do assemble  }
2
// g++ 1.36.1 bug 900210_10
3
 
4
// g++ allows operator[] to be declared as a static member function.
5
// This is illegal.
6
 
7
// Cfront 2.0 passes this test.
8
 
9
// keywords: operator[], static function members
10
 
11
struct struct0 {
12
  static int operator[] ();             /* { dg-error "" } */
13
};
14
 
15
int main () { return 0; }

powered by: WebSVN 2.1.0

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