1 // Make sure that bool bitfields promote to int properly.
2 
3 struct F {
4   bool b1 : 1;
5   bool b2 : 7;
6 };
7 
main()8 int main()
9 {
10   F f = { true, true };
11 
12   if (int (f.b1) != 1)
13     return 1;
14 }
15