blob: 32d69406b889897052817569b9658f2ca95087c9 [file] [log] [blame]
// { 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);
}