URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.ext/] [default.C] - Rev 307
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// PRMS Id: 5353
// This may be an extension, but it's a very common one...
extern "C" int printf (const char *, ...);
class A {
public:
static A*func (int = 3);
static A*(*ptr)(int = 4); // { dg-error "" } .*
};
A*(*A::ptr)(int) = &A::func;
int main()
{
A foo;
A::ptr(); // { dg-error "" } .*
A::ptr(47);
}
A*A::func(int i)
{
printf("I = %d\n",i);
return (A*)0;
}
Go to most recent revision | Compare with Previous | Blame | View Log