summaryrefslogtreecommitdiffstats
path: root/test/FrontendC/pr2394.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/FrontendC/pr2394.c')
-rw-r--r--test/FrontendC/pr2394.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/FrontendC/pr2394.c b/test/FrontendC/pr2394.c
new file mode 100644
index 0000000..ca8b046
--- /dev/null
+++ b/test/FrontendC/pr2394.c
@@ -0,0 +1,6 @@
+// RUN: %llvmgcc %s -S -o - | FileCheck %s
+struct __attribute((packed)) x {int a : 24;};
+int a(struct x* g) {
+ // CHECK: load i24
+ return g->a;
+}
OpenPOWER on IntegriCloud