aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/enum3.C
blob: 38b7d3cdae8215b60322b47c5e22d3150a353ec4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Build don't link: 
// 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)
};