URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.brendan/] [overload9.C] - Rev 841
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// GROUPS passed overloading
class CLogger
{
public:
void operator() (int,const char *) {}; // { dg-error "" } candidates
void operator() (int,const char *, ...) {}; // { dg-error "" } candidates
} Log;
class CGLogger : public CLogger
{
} GLog;
int main()
{
Log(1,"Test");// { dg-error "" } call of.*
Log(1,"Test %d",3);
GLog(1,"Test");// { dg-error "" } call of.*
GLog(1,"Test %d",3);
}
Go to most recent revision | Compare with Previous | Blame | View Log