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.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [parse5.C] - Rev 338
Compare with Previous | Blame | View Log
// { dg-do assemble }
// Bug: foo (bar) should be a declaration of a static data member, not a
// function; it's getting caught by the rules for constructors.
typedef int foo;
typedef int bar;
struct A {
static foo (bar); // { dg-bogus "" }
};
int i = A::bar; // { dg-bogus "" }
int (*fp)(bar) = A::foo; // { dg-error "" }