URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 338 |
// { dg-do assemble }
|
// { dg-do assemble }
|
|
|
struct A
|
struct A
|
{
|
{
|
operator bool () const;
|
operator bool () const;
|
operator const void * () const;
|
operator const void * () const;
|
};
|
};
|
|
|
struct B
|
struct B
|
{
|
{
|
A a;
|
A a;
|
int foo1 ();
|
int foo1 ();
|
int foo2 ();
|
int foo2 ();
|
};
|
};
|
|
|
int
|
int
|
B::foo1 ()
|
B::foo1 ()
|
{
|
{
|
return a ? 0 : 1; // ambiguous default type conversion for `operator !='
|
return a ? 0 : 1; // ambiguous default type conversion for `operator !='
|
}
|
}
|
|
|
int
|
int
|
B::foo2 ()
|
B::foo2 ()
|
{
|
{
|
if (a)
|
if (a)
|
return 0;
|
return 0;
|
else
|
else
|
return 1;
|
return 1;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.