Skip to content

Commit 1970abf

Browse files
committed
add test for unnamed bit-fields of size zero
1 parent fe507d2 commit 1970abf

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test/testvalueflow.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9109,6 +9109,11 @@ class TestValueFlow : public TestFixture {
91099109
testBitfields("unsigned int a : 31;\n"
91109110
"unsigned int : 2;\n",
91119111
8);
9112+
9113+
testBitfields("unsigned int a : 16;\n"
9114+
"unsigned int : 0;\n"
9115+
"unsigned int b : 16;\n",
9116+
8);
91129117
}
91139118
};
91149119

0 commit comments

Comments
 (0)