mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 18:04:59 +00:00
Object: change test to create archive.
llvm-svn: 142982
This commit is contained in:
parent
6f6b8f7b4d
commit
c59705a3bc
Binary file not shown.
12
test/Object/TestObjectFiles/trivial.ll
Normal file
12
test/Object/TestObjectFiles/trivial.ll
Normal file
@ -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(...)
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user