URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
// { dg-do compile }
|
// { dg-do compile }
|
// { dg-options "-O2" }
|
// { dg-options "-O2" }
|
// We used to ICE in compare_values as the types for a comparison
|
// We used to ICE in compare_values as the types for a comparison
|
// were not the same kind of types.
|
// were not the same kind of types.
|
|
|
struct class1
|
struct class1
|
{
|
{
|
virtual ~class1 ();
|
virtual ~class1 ();
|
};
|
};
|
struct class2 : class1 { };
|
struct class2 : class1 { };
|
|
|
void f(class1 * oo)
|
void f(class1 * oo)
|
{
|
{
|
class2 * oj = dynamic_cast (oo) ;
|
class2 * oj = dynamic_cast (oo) ;
|
if (oj)
|
if (oj)
|
delete oo;
|
delete oo;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.