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 assemble }
|
// { dg-do assemble }
|
// GROUPS passed old-abort
|
// GROUPS passed old-abort
|
|
|
union Value
|
union Value
|
{
|
{
|
Value(){}
|
Value(){}
|
};
|
};
|
|
|
struct GlobalAddress
|
struct GlobalAddress
|
{// { dg-error "" } candidates .*
|
{// { dg-error "" } candidates .*
|
GlobalAddress(Value *nvar){}// { dg-error "" } .*
|
GlobalAddress(Value *nvar){}// { dg-error "" } .*
|
};
|
};
|
|
|
int
|
int
|
main()
|
main()
|
{
|
{
|
new GlobalAddress(Value()); // internal error occured here// { dg-error "" } no matching function .*
|
new GlobalAddress(Value()); // internal error occured here// { dg-error "" } no matching function .*
|
//new GlobalAddress(new Value()); // This line is correct code
|
//new GlobalAddress(new Value()); // This line is correct code
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.