llvm-for-llvmta/test/tools/llvm-nm/X86/archive-no-llvm-bc.test

16 lines
479 B
Plaintext
Raw Permalink Normal View History

2022-04-25 10:02:23 +02:00
; RUN: rm -rf %t && mkdir -p %t
; RUN: grep -v "module asm" %s | llvm-as -o %t/embedded.bc
; RUN: llc -I=%t -filetype=obj -o %t/obj.o %s
; RUN: llvm-ar crs %t/lib.a %t/obj.o
; RUN: llvm-nm -m --no-llvm-bc %t/lib.a | FileCheck %s
target triple = "x86_64-apple-macosx10.11"
@q = global i32 1, align 4
; CHECK-NOT: {{-+}} (LTO,DATA) external _q
; CHECK: {{[[:xdigit:]]+}} (__DATA,__data) external _q
module asm ".section __LLVM,__bitcode"
module asm ".incbin \22embedded.bc\22"