Sign in
gnu
/
gcc
/
251a817e23053b543f04f101c675f5513bbb1865
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
bool2.C
blob: 559b7d0761564be32c0bc3ed8626e03a9b3ef353 [
file
] [
log
] [
blame
]
// 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
;
}