Skip to content

Commit 75a2715

Browse files
committed
add test for bit-field with greater number of bits than its type
1 parent 571ccfc commit 75a2715

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

test/testvalueflow.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9131,6 +9131,9 @@ class TestValueFlow : public TestFixture {
91319131
"unsigned int : 0;\n"
91329132
"unsigned int b : 16;\n",
91339133
8);
9134+
9135+
testBitfields("unsigned char a : 16;\n",
9136+
2);
91349137
}
91359138
};
91369139

0 commit comments

Comments
 (0)