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