aboutsummaryrefslogtreecommitdiff
path: root/tests/bitfield-compound-assign.c
diff options
context:
space:
mode:
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;
+}