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
/
enum13.C
blob
0d06ff1cf2cec350879698d0f1b47aeaae7a9535
1
// { dg-do assemble }
2
// GROUPS passed enums
3
enum COLOR { red, green, blue };
4
5
struct S {
6
COLOR color:2;
7
};
8
9
COLOR color;
10
S object;
11
12
void fubar ()
13
{
14
color = object.color;
15
}