Skip to content

Commit 4714c4e

Browse files
authored
Merge pull request #3712 from diffblue/struct-initialization-unnamed-bit-field
extended test for case of unnamed bit-fields (#3709)
2 parents d47b7a1 + 5c4e0b9 commit 4714c4e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

regression/cbmc/Struct_Initialization1/main.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
#include <assert.h>
2+
13
struct tag1 {
24
int f;
5+
int : 32; // unnamed bit-field, ignored during initialization
36
int g;
47
int *p;
58
int a[2];
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
CORE
1+
KNOWNBUG
22
main.c
33

44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$
77
--
88
^warning: ignoring
9+
--
10+
The C front-end needs to ignore the unnamed bit-field during struct
11+
initialization; issue #3709.

0 commit comments

Comments
 (0)