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++.law/] [unsorted1.C] - Rev 154
Compare with Previous | Blame | View Log
// { dg-do assemble }
// { dg-options "-O" }
// GROUPS passed unsorted
// unsorted.2 file
// From: skipnyc!skipsun!skip@fsg.com (Skip Gilbrech)
// Date: Wed, 10 Jun 92 6:55:18 EDT
// Subject: Problem with derived class access adjustment and -O
// Message-ID: <9206101055.AA20593@skipsun.UUCP>
class A {
public:
virtual void func() = 0;
};
class B : public A {
public:
void func() {}
};
class C : private B {
public:
B::func;
};
class D {
C c;
public:
void func() { c.func(); }
};