1; RUN: rm -rf %t && mkdir -p %t 2; RUN: llvm-as -o %t/bcsection.bc %s 3 4; RUN: llvm-mc -I=%t -filetype=obj -triple=x86_64-pc-win32 -o %t/bcsection.coff.bco %p/Inputs/bcsection.s 5; RUN: llvm-nm %t/bcsection.coff.bco | FileCheck %s 6; RUN: llvm-lto -exported-symbol=main -exported-symbol=_main -o %t/bcsection.coff.o %t/bcsection.coff.bco 7; RUN: llvm-nm %t/bcsection.coff.o | FileCheck %s 8 9; RUN: llvm-mc -I=%t -filetype=obj -triple=x86_64-unknown-linux-gnu -o %t/bcsection.elf.bco %p/Inputs/bcsection.s 10; RUN: llvm-nm %t/bcsection.elf.bco | FileCheck %s 11; RUN: llvm-lto -exported-symbol=main -exported-symbol=_main -o %t/bcsection.elf.o %t/bcsection.elf.bco 12; RUN: llvm-nm %t/bcsection.elf.o | FileCheck %s 13 14; RUN: llvm-mc -I=%t -filetype=obj -triple=x86_64-apple-darwin11 -o %t/bcsection.macho.bco %p/Inputs/bcsection.macho.s 15; RUN: llvm-nm %t/bcsection.macho.bco | FileCheck %s 16; RUN: llvm-lto -exported-symbol=main -exported-symbol=_main -o %t/bcsection.macho.o %t/bcsection.macho.bco 17; RUN: llvm-nm %t/bcsection.macho.o | FileCheck %s 18 19; REQUIRES: default_triple 20 21; CHECK: main 22define i32 @main() { 23 ret i32 0 24} 25