aboutsummaryrefslogtreecommitdiff
path: root/tests/bitfield-compound-assign.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-04-15 22:21:27 -0700
committerMichael Forney <mforney@mforney.org>2019-04-15 23:08:33 -0700
commit5eb638ef6c5e2b1abb927ad395aa6f15fcb3e92a (patch)
tree678c639a8c43593c7b8f4f577b9fce2adf071cca /tests/bitfield-compound-assign.c
parent4f56de1d1ae28ef3222577c8d38479a1ad1d2a99 (diff)
expr: Handle compound assignment of bit-fields
Diffstat (limited to 'tests/bitfield-compound-assign.c')
-rw-r--r--tests/bitfield-compound-assign.c7
1 files changed, 7 insertions, 0 deletions
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;
+}