summaryrefslogtreecommitdiffstats
path: root/llvm/test/Object/TestObjectFiles
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2011-10-25 22:30:58 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2011-10-25 22:30:58 +0000
commit8ab7b036f796f9c69e483ce3f60cd661885f210a (patch)
tree2cb7f3f4fb7b6e543bc73e5213458c046d309b49 /llvm/test/Object/TestObjectFiles
parent9aaa8523368fd229cea1a7ba4eab375f83661088 (diff)
downloadbcm5719-llvm-8ab7b036f796f9c69e483ce3f60cd661885f210a.tar.gz
bcm5719-llvm-8ab7b036f796f9c69e483ce3f60cd661885f210a.zip
Object: change test to create archive.
llvm-svn: 142982
Diffstat (limited to 'llvm/test/Object/TestObjectFiles')
-rw-r--r--llvm/test/Object/TestObjectFiles/archive-test.a-bitcodebin790 -> 0 bytes
-rw-r--r--llvm/test/Object/TestObjectFiles/trivial.ll12
2 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/Object/TestObjectFiles/archive-test.a-bitcode b/llvm/test/Object/TestObjectFiles/archive-test.a-bitcode
deleted file mode 100644
index 3aeb34fa334..00000000000
--- a/llvm/test/Object/TestObjectFiles/archive-test.a-bitcode
+++ /dev/null
Binary files differ
diff --git a/llvm/test/Object/TestObjectFiles/trivial.ll b/llvm/test/Object/TestObjectFiles/trivial.ll
new file mode 100644
index 00000000000..25ece7611a3
--- /dev/null
+++ b/llvm/test/Object/TestObjectFiles/trivial.ll
@@ -0,0 +1,12 @@
+@.str = private unnamed_addr constant [13 x i8] c"Hello World\0A\00", align 1
+
+define i32 @main() nounwind {
+entry:
+ %call = tail call i32 @puts(i8* getelementptr inbounds ([13 x i8]* @.str, i32 0, i32 0)) nounwind
+ tail call void bitcast (void (...)* @SomeOtherFunction to void ()*)() nounwind
+ ret i32 0
+}
+
+declare i32 @puts(i8* nocapture) nounwind
+
+declare void @SomeOtherFunction(...)
OpenPOWER on IntegriCloud