46 lines · plain
1# RUN: not llvm-mc -filetype=obj -triple=x86_64 %s -o /dev/null 2>&1 | FileCheck %s --implicit-check-not=error: --implicit-check-not=warning:2 3## -filetype=asm does not check the error.4# RUN: llvm-mc -triple=x86_64 %s5 6.section .tbss,"aw",@nobits7 jmp foo8 9.bss10 addb %al,(%rax)11 12# CHECK: {{.*}}.s:[[#@LINE+1]]:11: warning: ignoring non-zero fill value in BSS section '.bss'13.align 4, 4214 15 .long 116 17.section .bss0,"aw",%nobits18addb %al,(%rax)19 20.section data_fixup,"aw",%nobits21.quad foo22 23.section fill,"aw",%nobits24.fill b-a,1,125 26.section org,"aw",%nobits27.org 1,128 29.section ok,"aw",%nobits30.org 131.fill 132.fill b-a,1,033.align 4, 034.long 035 36.text37a: nop38b:39 40## Location is not tracked for efficiency.41# CHECK: <unknown>:0: error: BSS section '.tbss' cannot have non-zero bytes42# CHECK: <unknown>:0: error: BSS section '.bss' cannot have non-zero bytes43# CHECK: <unknown>:0: error: BSS section 'data_fixup' cannot have fixups44# CHECK: <unknown>:0: error: BSS section 'fill' cannot have non-zero bytes45# CHECK: <unknown>:0: error: BSS section 'org' cannot have non-zero bytes46