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++.jason/] [parse5.C] - Blame information for rev 305

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

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do assemble  }
2
// Bug: foo (bar) should be a declaration of a static data member, not a
3
// function; it's getting caught by the rules for constructors.
4
 
5
typedef int foo;
6
typedef int bar;
7
struct A {
8
  static foo (bar);             // { dg-bogus "" }
9
};
10
 
11
int i = A::bar;                 // { dg-bogus "" }
12
int (*fp)(bar) = A::foo;        // { dg-error "" }

powered by: WebSVN 2.1.0

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