1; Test the various output formats of the llvm-lto utility
2;
3; RUN: llvm-as < %s > %t1
4;
5; RUN: llvm-lto -exported-symbol=main -save-merged-module -filetype=asm -o %t2 %t1
6; RUN: llvm-dis -o - %t2.merged.bc | FileCheck %s
7; CHECK: @main()
8
9; RUN: FileCheck --check-prefix=ASM %s < %t2
10; RUN: llvm-lto -exported-symbol=main -filetype=obj -o %t2 %t1
11; RUN: llvm-objdump -d %t2 | FileCheck --check-prefix=ASM %s
12; ASM: main:
13;
14
15target triple = "x86_64-unknown-linux-gnu"
16
17define i32 @main() {
18entry:
19  ret i32 23
20}
21
22