2014-09-19 05:28:49 +08:00
|
|
|
; RUN: llvm-as -o %T/bcsection.bc %s
|
|
|
|
|
|
|
|
; RUN: llvm-mc -I=%T -filetype=obj -triple=x86_64-pc-win32 -o %T/bcsection.coff.bco %p/Inputs/bcsection.s
|
|
|
|
; RUN: llvm-nm %T/bcsection.coff.bco | FileCheck %s
|
2014-09-19 06:56:00 +08:00
|
|
|
; RUN: llvm-lto -exported-symbol=main -exported-symbol=_main -o %T/bcsection.coff.o %T/bcsection.coff.bco
|
2014-09-19 05:28:49 +08:00
|
|
|
; RUN: llvm-nm %T/bcsection.coff.o | FileCheck %s
|
|
|
|
|
|
|
|
; RUN: llvm-mc -I=%T -filetype=obj -triple=x86_64-unknown-linux-gnu -o %T/bcsection.elf.bco %p/Inputs/bcsection.s
|
|
|
|
; RUN: llvm-nm %T/bcsection.elf.bco | FileCheck %s
|
2014-09-19 06:56:00 +08:00
|
|
|
; RUN: llvm-lto -exported-symbol=main -exported-symbol=_main -o %T/bcsection.elf.o %T/bcsection.elf.bco
|
2014-09-19 05:28:49 +08:00
|
|
|
; RUN: llvm-nm %T/bcsection.elf.o | FileCheck %s
|
|
|
|
|
|
|
|
; RUN: llvm-mc -I=%T -filetype=obj -triple=x86_64-apple-darwin11 -o %T/bcsection.macho.bco %p/Inputs/bcsection.macho.s
|
|
|
|
; RUN: llvm-nm %T/bcsection.macho.bco | FileCheck %s
|
2014-09-19 06:56:00 +08:00
|
|
|
; RUN: llvm-lto -exported-symbol=main -exported-symbol=_main -o %T/bcsection.macho.o %T/bcsection.macho.bco
|
2014-09-19 05:28:49 +08:00
|
|
|
; RUN: llvm-nm %T/bcsection.macho.o | FileCheck %s
|
|
|
|
|
2015-09-16 13:34:32 +08:00
|
|
|
; REQUIRES: default_triple
|
|
|
|
|
2014-09-19 05:28:49 +08:00
|
|
|
; CHECK: main
|
|
|
|
define i32 @main() {
|
|
|
|
ret i32 0
|
|
|
|
}
|