30 lines · plain
1# REQUIRES: x86-registered-target2 3## Verify llvm-bitcode-strip removes sections from object files4# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t5# RUN: llvm-bitcode-strip -r %t -o %t26# RUN: llvm-readobj --macho-segment --sections %t2 | FileCheck --implicit-check-not=__LLVM %s7 8# CHECK: Name: __text9# CHECK-NEXT: Segment: __TEXT10 11.section __LLVM,__bundle12 .asciz "test"13 14.section __LLVM,__bitcode15 .asciz "test"16 17.section __LLVM,__cmdline18 .asciz "test"19 20.section __LLVM,__swift_cmdline21 .asciz "test"22 23.section __LLVM,__asm24 .asciz "test"25 26.text27.globl _main28_main:29 ret30