URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [overload6.C] - Rev 149
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do run }
extern "C" void abort();
struct S1
{
int f() { return 0; }
int f() const { return 1; }
};
struct S2 : public S1
{
};
int main()
{
S2 s2;
if (s2.f() != 0)
abort ();
}
Go to most recent revision | Compare with Previous | Blame | View Log