1 // { dg-do assemble  }
2 // Origin: "Chen, Wen-Ke" <chwk@cs.arizona.edu>
3 
4 template <class T>
5 bool operator!=(const T&, const T&);
6 
7 enum MsgType {
8   MSG_DATA
9 };
10 
11 class C {
12 public:
13   MsgType mType : 8;
14 };
15 
main(void)16 int main(void)
17 {
18   extern C& c;
19 
20   c.mType = MSG_DATA;
21   if (c.mType != MSG_DATA)
22     return -1;
23 
24   return 0;
25 }
26