URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc3/] [gcc/] [testsuite/] [g++.old-deja/] [g++.brendan/] [enum3.C] - Rev 516
Compare with Previous | Blame | View Log
// { dg-do assemble }
// GROUPS passed enums
enum foo
{
x = 0
};
enum bar
{
// 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
// strips them off before working on it, so we shouldn't get any
// errors for this.
y = (x + 0x0000)
};