repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
reflect: canonicalize types returned by StructOf() and friends
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
enum3.C
blob
f11c0509fd49026a8aacfbed61e8eff86bd5c9da
1
// { dg-do assemble }
2
// GROUPS passed enums
3
enum foo
4
{
5
x = 0
6
};
7
8
enum bar
9
{
10
// this used to say `x' wasn't a constant, because build_enumerator
11
// was getting the value of x wrapped around a NOP_EXPR. It now
12
// strips them off before working on it, so we shouldn't get any
13
// errors for this.
14
y = (x + 0x0000)
15
};