summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLauro Ramos Venancio <lauro.venancio@gmail.com>2007-07-11 19:56:53 +0000
committerLauro Ramos Venancio <lauro.venancio@gmail.com>2007-07-11 19:56:53 +0000
commita126bb71d5ba119fcddabfe022fad9647b9f1bf0 (patch)
tree655fdca330a9e12be2735f7b30cdb2fde9259601 /test
parent02e2152d02b6463c33e4462c849c604a9be0c9c5 (diff)
downloadllvm-a126bb71d5ba119fcddabfe022fad9647b9f1bf0.tar.gz
llvm-a126bb71d5ba119fcddabfe022fad9647b9f1bf0.tar.bz2
llvm-a126bb71d5ba119fcddabfe022fad9647b9f1bf0.tar.xz
Handle packed structs in the CBackend.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@39752 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/CBackend/2007-07-11-PackedStruct.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/CBackend/2007-07-11-PackedStruct.ll b/test/CodeGen/CBackend/2007-07-11-PackedStruct.ll
new file mode 100644
index 0000000000..6057616111
--- /dev/null
+++ b/test/CodeGen/CBackend/2007-07-11-PackedStruct.ll
@@ -0,0 +1,9 @@
+; RUN: llvm-as < %s | llc -march=c | grep {packed}
+
+ %struct.p = type <{ i16 }>
+
+define i32 @main() {
+entry:
+ %t = alloca %struct.p, align 2
+ ret i32 5
+}