Add compilation test for #1027

This commit is contained in:
Martin Hořeňovský 2017-11-13 10:07:06 +01:00
parent 8dbaac61ff
commit b74d4ca96d
6 changed files with 75 additions and 9 deletions

View file

@ -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);
}