Add compilation test for #1027
This commit is contained in:
parent
8dbaac61ff
commit
b74d4ca96d
6 changed files with 75 additions and 9 deletions
|
@ -85,3 +85,13 @@ TEST_CASE( "#872" ) {
|
|||
B x;
|
||||
REQUIRE (x == 4);
|
||||
}
|
||||
|
||||
struct Y {
|
||||
uint32_t v : 1;
|
||||
};
|
||||
|
||||
TEST_CASE( "#1027" ) {
|
||||
Y y{ 0 };
|
||||
REQUIRE(y.v == 0);
|
||||
REQUIRE(0 == y.v);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue