Skip to content

Commit

Permalink
Object: change test to create archive.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142982 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Bigcheese committed Oct 25, 2011
1 parent aaf98ea commit 93fe4ae
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
Binary file removed test/Object/TestObjectFiles/archive-test.a-bitcode
Binary file not shown.
12 changes: 12 additions & 0 deletions test/Object/TestObjectFiles/trivial.ll
Original file line number Diff line number Diff line change
@@ -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(...)
5 changes: 3 additions & 2 deletions test/Object/nm-archive.test
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
RUN: llvm-nm %p/TestObjectFiles/archive-test.a-coff-i386 \
RUN: | FileCheck %s -check-prefix COFF
RUN: llvm-nm %p/TestObjectFiles/archive-test.a-bitcode \
RUN: | FileCheck %s -check-prefix BITCODE
RUN: llvm-as %p/TestObjectFiles/trivial.ll -o=%t1
RUN: llvm-ar rcs %t2 %t1
RUN: llvm-nm %t2 | FileCheck %s -check-prefix BITCODE


COFF: trivial-object-test.coff-i386:
Expand Down

0 comments on commit 93fe4ae

Please sign in to comment.