From 5eb638ef6c5e2b1abb927ad395aa6f15fcb3e92a Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Mon, 15 Apr 2019 22:21:27 -0700 Subject: expr: Handle compound assignment of bit-fields --- tests/bitfield-compound-assign.c | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tests/bitfield-compound-assign.c (limited to 'tests/bitfield-compound-assign.c') diff --git a/tests/bitfield-compound-assign.c b/tests/bitfield-compound-assign.c new file mode 100644 index 0000000..5ca42e4 --- /dev/null +++ b/tests/bitfield-compound-assign.c @@ -0,0 +1,7 @@ +struct { + int : 4, x : 9, : 3; +} s; + +void f(void) { + s.x += 3; +} -- cgit v1.2.3