URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
// { dg-do compile }
|
// { dg-do compile }
|
// Origin: Giovanni Bajo
|
// Origin: Giovanni Bajo
|
// DR135: Class type in in-class member function definitions
|
// DR135: Class type in in-class member function definitions
|
|
|
struct S {
|
struct S {
|
S f() { return S(); } // { dg-bogus "" "incomplete class type is allowed as return type" }
|
S f() { return S(); } // { dg-bogus "" "incomplete class type is allowed as return type" }
|
void g(S) { } // { dg-bogus "" "incomplete class type is allowed as parameter type" }
|
void g(S) { } // { dg-bogus "" "incomplete class type is allowed as parameter type" }
|
};
|
};
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.