Fix broken anonymous_bitfield C checking code

For some reason the test expected another bit field be changed when setting
the given one, which was just plain wrong and prevented the test from passing.
This commit is contained in:
Vadim Zeitlin 2016-04-20 23:14:52 +02:00
commit 59c131ea08
2 changed files with 2 additions and 3 deletions

View file

@ -46,7 +46,6 @@ FAILING_C_TESTS := \
FAILING_CPP_TESTS := \
abstract_typedef2 \
anonymous_bitfield \
apply_signed_char \
apply_strings \
array_member \

View file

@ -8,10 +8,10 @@ int main(int argc, const char *argv[]) {
Foo_x_set(f, 1);
assert(Foo_x_get(f) == 1);
assert(Foo_y_get(f) == 1);
assert(Foo_y_get(f) == 0);
Foo_y_set(f, 0);
assert(Foo_x_get(f) == 0);
assert(Foo_x_get(f) == 1);
assert(Foo_y_get(f) == 0);
Foo_f_set(f, 1);