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