URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
// PR c++/17816
|
// PR c++/17816
|
// We failed to report duplicate definitions of pure virtual ns.
|
// We failed to report duplicate definitions of pure virtual ns.
|
|
|
// { dg-do compile }
|
// { dg-do compile }
|
|
|
struct S {
|
struct S {
|
virtual int foo() = 0;
|
virtual int foo() = 0;
|
};
|
};
|
|
|
int S::foo() { return 0; } // { dg-error "defined here" }
|
int S::foo() { return 0; } // { dg-error "defined here" }
|
int S::foo() { return 0; } // { dg-error "redefinition" }
|
int S::foo() { return 0; } // { dg-error "redefinition" }
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.