brintos

brintos / llvm-project-archived public Read only

0
0
Text · 827 B · 673853f Raw
19 lines · plain
1; RUN: rm -rf %t && mkdir -p %t2; RUN: llvm-as -o %t/bcsection.bc %s3 4; RUN: llvm-mc -I=%t -filetype=obj -triple=x86_64-pc-win32 -o %t/bcsection.coff.bco %p/Inputs/bcsection.s5; RUN: llvm-nm %t/bcsection.coff.bco | FileCheck %s --allow-empty6; RUN: not llvm-lto -exported-symbol=main -exported-symbol=_main -o %t/bcsection.coff.o %t/bcsection.coff.bco7 8; RUN: llvm-mc -I=%t -filetype=obj -triple=x86_64-unknown-linux-gnu -o %t/bcsection.elf.bco %p/Inputs/bcsection.s9; RUN: llvm-nm %t/bcsection.elf.bco | FileCheck %s --allow-empty10; RUN: not llvm-lto -exported-symbol=main -exported-symbol=_main -o %t/bcsection.elf.o %t/bcsection.elf.bco11 12target triple = "x86_64-unknown-linux-gnu"13 14;; The .llvmbc section is not intended for use with LTO, so there should be nothing here15; CHECK-NOT: main16define i32 @main() {17  ret i32 018}19