2017-08-16 04:29:24 +08:00
|
|
|
; RUN: rm -rf %t && mkdir -p %t
|
|
|
|
; RUN: llvm-as -o %t/bcsection.bc %s
|
2014-09-19 05:28:49 +08:00
|
|
|
|
2017-08-16 04:29:24 +08:00
|
|
|
; RUN: llvm-mc -I=%t -filetype=obj -triple=x86_64-unknown-unknown -o %t/bcsection.bco %p/Inputs/bcsection.s
|
2019-04-28 00:12:14 +08:00
|
|
|
; RUN: llvm-nm --no-llvm-bc %t/bcsection.bco 2>&1 | FileCheck %s -check-prefix=NO-SYMBOLS
|
2018-10-04 07:39:49 +08:00
|
|
|
; NO-SYMBOLS: no symbols
|
|
|
|
|
2017-12-14 23:59:05 +08:00
|
|
|
; RUN: %gold -r -o %t/bcsection.o -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold%shlibext %t/bcsection.bco
|
2019-04-28 00:12:14 +08:00
|
|
|
; RUN: llvm-nm --no-llvm-bc %t/bcsection.o | FileCheck %s
|
2014-09-19 05:28:49 +08:00
|
|
|
|
2016-12-15 05:57:04 +08:00
|
|
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
2015-09-11 22:45:34 +08:00
|
|
|
target triple = "x86_64-unknown-unknown"
|
|
|
|
|
2014-09-19 05:28:49 +08:00
|
|
|
; CHECK: main
|
|
|
|
define i32 @main() {
|
|
|
|
ret i32 0
|
|
|
|
}
|