URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 338 |
// { dg-do run { xfail sparc64-*-elf arm-*-pe**-* } }
|
// { dg-do run { xfail sparc64-*-elf arm-*-pe**-* } }
|
// { dg-options "-fexceptions -w" }
|
// { dg-options "-fexceptions -w" }
|
// Ensure that the return type of dynamic_cast is the real type.
|
// Ensure that the return type of dynamic_cast is the real type.
|
|
|
struct B {
|
struct B {
|
virtual int f() { }
|
virtual int f() { }
|
};
|
};
|
|
|
struct D : public B {
|
struct D : public B {
|
virtual int f() { }
|
virtual int f() { }
|
int i;
|
int i;
|
} od;
|
} od;
|
|
|
main() {
|
main() {
|
B *b=&od;
|
B *b=&od;
|
if (dynamic_cast(b)->i)
|
if (dynamic_cast(b)->i)
|
return 1;
|
return 1;
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.