Skip to content

Commit a20ab69

Browse files
committed
add test for bit-field with greater number of bits than its type
1 parent 3b69acc commit a20ab69

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
@@ -9114,6 +9114,9 @@ class TestValueFlow : public TestFixture {
91149114
"unsigned int : 0;\n"
91159115
"unsigned int b : 16;\n",
91169116
8);
9117+
9118+
testBitfields("unsigned char a : 16;\n",
9119+
2);
91179120
}
91189121
};
91199122

0 commit comments

Comments
 (0)