gold-plugin: "Upgrade" debug info and handle its warnings.
[oota-llvm.git] / test / tools / gold / bcsection.ll
1 ; RUN: llvm-as -o %T/bcsection.bc %s
2
3 ; RUN: llvm-mc -I=%T -filetype=obj -o %T/bcsection.bco %p/Inputs/bcsection.s
4 ; RUN: llvm-nm -no-llvm-bc %T/bcsection.bco | count 0
5 ; RUN: %gold -r -o %T/bcsection.o -plugin %llvmshlibdir/LLVMgold.so %T/bcsection.bco
6 ; RUN: llvm-nm -no-llvm-bc %T/bcsection.o | FileCheck %s
7
8 ; CHECK: main
9 define i32 @main() {
10   ret i32 0
11 }