aboutsummaryrefslogtreecommitdiff
path: root/tests/bitfield-load-signed.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bitfield-load-signed.c')
-rw-r--r--tests/bitfield-load-signed.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/bitfield-load-signed.c b/tests/bitfield-load-signed.c
new file mode 100644
index 0000000..837ad24
--- /dev/null
+++ b/tests/bitfield-load-signed.c
@@ -0,0 +1,7 @@
+struct {
+ signed : 4, x : 15, : 13;
+} s;
+
+void f(void) {
+ s.x;
+}