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