URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 384 |
// { dg-do assemble }
|
// { dg-do assemble }
|
// Origin: Mark Mitchell
|
// Origin: Mark Mitchell
|
|
|
struct A {
|
struct A {
|
};
|
};
|
|
|
int main()
|
int main()
|
{
|
{
|
A a;
|
A a;
|
typedef void (A::*F)();
|
typedef void (A::*F)();
|
F p;
|
F p;
|
|
|
const_cast(a); // { dg-error "" } const_cast requires pointer/ref types
|
const_cast(a); // { dg-error "" } const_cast requires pointer/ref types
|
const_cast(p); // { dg-error "" } const_cast requires pointer/ref types
|
const_cast(p); // { dg-error "" } const_cast requires pointer/ref types
|
const_cast(&main); // { dg-error "" } function type in const_cast
|
const_cast(&main); // { dg-error "" } function type in const_cast
|
const_cast(main); // { dg-error "" } function type in const_cast
|
const_cast(main); // { dg-error "" } function type in const_cast
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.