Initial revision
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / bool2.C
blob4c0edcb3596bcb69297a068f451db2538ec61d82
1 // Make sure that bool bitfields promote to int properly.
3 struct F {
4   bool b1 : 1;
5   bool b2 : 7;
6 };
8 main()
10   F f = { true, true };
12   if (int (f.b1) != 1)
13     return 1;