diff options
author | Stuart Hastings <stuart@apple.com> | 2010-05-05 22:49:33 +0000 |
---|---|---|
committer | Stuart Hastings <stuart@apple.com> | 2010-05-05 22:49:33 +0000 |
commit | 08bbda3811dcd797943ca162f3799f2d52dc2f6b (patch) | |
tree | 5cbcf831612796007a19d1700f82d2922b4e65d2 | |
parent | be192dd1e987361ecf51ff385cbf541cb7f779be (diff) |
Test case for pr2394 and r102979.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103129 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/FrontendC/pr2394.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/FrontendC/pr2394.c b/test/FrontendC/pr2394.c new file mode 100644 index 0000000000..ca8b046f72 --- /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; +} |