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/] [overload1.C] - Rev 149
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// GROUPS passed overloading
class Foo
{
public:
int f (void);
};
class Bar : public Foo
{
public:
int f (int); // { dg-error "" } candidates are
};
int main ()
{
Bar b;
b.f ();// { dg-error "" }
b.f (10);
}
Go to most recent revision | Compare with Previous | Blame | View Log