diff options
author | Michael Forney <mforney@mforney.org> | 2019-04-15 22:21:27 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2019-04-15 23:08:33 -0700 |
commit | 5eb638ef6c5e2b1abb927ad395aa6f15fcb3e92a (patch) | |
tree | 678c639a8c43593c7b8f4f577b9fce2adf071cca /tests/bitfield-compound-assign.c | |
parent | 4f56de1d1ae28ef3222577c8d38479a1ad1d2a99 (diff) |
expr: Handle compound assignment of bit-fields
Diffstat (limited to 'tests/bitfield-compound-assign.c')
-rw-r--r-- | tests/bitfield-compound-assign.c | 7 |
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; +} |