summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/enum13.C
blob: 0d06ff1cf2cec350879698d0f1b47aeaae7a9535 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do assemble  }
// GROUPS passed enums
enum COLOR { red, green, blue };
 
struct S {
    COLOR       color:2;
};
 
COLOR color;
S object;
 
void fubar ()
{
    color = object.color;
}