• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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-unknown-unknown -o %t/bcsection.bco %p/Inputs/bcsection.s
5; RUN: llvm-nm --no-llvm-bc %t/bcsection.bco 2>&1 | FileCheck %s -check-prefix=NO-SYMBOLS
6; NO-SYMBOLS: no symbols
7
8; RUN: %gold -r -o %t/bcsection.o -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold%shlibext %t/bcsection.bco
9; RUN: llvm-nm --no-llvm-bc %t/bcsection.o | FileCheck %s
10
11target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
12target triple = "x86_64-unknown-unknown"
13
14; CHECK: main
15define i32 @main() {
16  ret i32 0
17}
18