Test case for pr2394 and r102979.
authorStuart Hastings <stuart@apple.com>
Wed, 5 May 2010 22:49:33 +0000 (22:49 +0000)
committerStuart Hastings <stuart@apple.com>
Wed, 5 May 2010 22:49:33 +0000 (22:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103129 91177308-0d34-0410-b5e6-96231b3b80d8

test/FrontendC/pr2394.c [new file with mode: 0644]

diff --git a/test/FrontendC/pr2394.c b/test/FrontendC/pr2394.c
new file mode 100644 (file)
index 0000000..ca8b046
--- /dev/null
@@ -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;
+}