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.0rc3/] [gcc/] [testsuite/] [g++.old-deja/] [g++.brendan/] [overload4.C] - Rev 305
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// GROUPS passed overloading
typedef void * (*NewObject) (void);
class B
{
public:
static void WantsNew (NewObject creator); // { dg-message "candidate is" }
};
class A
{
public:
static A * NewOne (void);
static void InitClass (void)
{
B::WantsNew ( (NewObject) A::NewOne );
// This used to die in convert_harshness_{ansi,old} cuz it
// didn't know what to do about a void type.
B::WantsNew ( A::NewOne );// { dg-error "no matching" }
}
};
Go to most recent revision | Compare with Previous | Blame | View Log