URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 338 |
// { dg-do assemble }
|
// { dg-do assemble }
|
// GROUPS passed enums
|
// GROUPS passed enums
|
enum foo
|
enum foo
|
{
|
{
|
x = 0
|
x = 0
|
};
|
};
|
|
|
enum bar
|
enum bar
|
{
|
{
|
// this used to say `x' wasn't a constant, because build_enumerator
|
// this used to say `x' wasn't a constant, because build_enumerator
|
// was getting the value of x wrapped around a NOP_EXPR. It now
|
// was getting the value of x wrapped around a NOP_EXPR. It now
|
// strips them off before working on it, so we shouldn't get any
|
// strips them off before working on it, so we shouldn't get any
|
// errors for this.
|
// errors for this.
|
y = (x + 0x0000)
|
y = (x + 0x0000)
|
};
|
};
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.