aboutsummaryrefslogtreecommitdiff
path: root/test/bitfield-union.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/bitfield-union.c')
-rw-r--r--test/bitfield-union.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/bitfield-union.c b/test/bitfield-union.c
new file mode 100644
index 0000000..f366ec8
--- /dev/null
+++ b/test/bitfield-union.c
@@ -0,0 +1,4 @@
+union {
+ int x : 5;
+ int y : 10;
+} u = {.y = 123};