URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
// { dg-options "-w" }
|
// { dg-options "-w" }
|
|
|
struct Base {
|
struct Base {
|
int b;
|
int b;
|
|
|
Base(int b) : b(b) { }
|
Base(int b) : b(b) { }
|
};
|
};
|
|
|
struct Derived : public Base {
|
struct Derived : public Base {
|
Derived(int d) : Base(d) { }
|
Derived(int d) : Base(d) { }
|
};
|
};
|
|
|
struct Final : public Derived, public Base {
|
struct Final : public Derived, public Base {
|
Final(int f) : Derived(f), Base(f-1) { }
|
Final(int f) : Derived(f), Base(f-1) { }
|
};
|
};
|
|
|
int main()
|
int main()
|
{
|
{
|
Final f(5);
|
Final f(5);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.