Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.other/bitfld4.C

raw
1 // { dg-do assemble }
2 // Origin: "Chen, Wen-Ke" <[email protected]>
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
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 }