Skip to content

Commit 9213145

Browse files
author
Daniel Kroening
committed
Enable compilation of test with gcc/clang
gcc/clang reject bit-fields with bit-width larger than the underlying type. This change enables compilation of the test with gcc/clang.
1 parent f3793bd commit 9213145

File tree

1 file changed

+1
-1
lines changed
  • regression/cbmc/Bitfields1

1 file changed

+1
-1
lines changed

regression/cbmc/Bitfields1/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ struct bft {
1111
unsigned int a:3;
1212
unsigned int b:1;
1313
signed int c:2;
14-
_Bool d:3;
14+
_Bool d : 1;
1515

1616
// an anonymous bitfield
1717
signed int :2;

0 commit comments

Comments
 (0)