OpenCores
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.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.brendan/] [enum3.C] - Diff between revs 305 and 338

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)
};
};
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.