blob: 21c3dc8db5a5a1f201f1a5adc5d1cb742c0a049a [file] [log] [blame]
// Build don't link:
// GROUPS passed overloading
typedef void * (*NewObject) (void);
class B
{
public:
static void WantsNew (NewObject creator); // ERROR - candidates are
};
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 );// ERROR -
}
};