blob: 0e245679ce61d748baae73a8732d448b054466b1 [file] [log] [blame]
// { dg-do assemble }
// GROUPS passed overloading
class CLogger
{
public:
void operator() (int,const char *) {}; // { dg-message "note" }
void operator() (int,const char *, ...) {}; // { dg-message "note" }
} Log;
class CGLogger : public CLogger
{
} GLog;
int main()
{
Log(1,"Test");// { dg-error "ambiguous" }
Log(1,"Test %d",3);
GLog(1,"Test");// { dg-error "ambiguous" }
GLog(1,"Test %d",3);
}