1# RUN: not llvm-mc -filetype=obj -triple=x86_64 %s -o /dev/null 2>&1 | FileCheck %s 2 3## -filetype=asm does not check the error. 4# RUN: llvm-mc -triple=x86_64 %s 5 6.section .tbss,"aw",@nobits 7# MCRelaxableFragment 8# CHECK: {{.*}}.s:[[#@LINE+1]]:3: error: SHT_NOBITS section '.tbss' cannot have instructions 9 jmp foo 10 11.bss 12# CHECK: {{.*}}.s:[[#@LINE+1]]:3: error: SHT_NOBITS section '.bss' cannot have instructions 13 addb %al,(%rax) 14 15# CHECK: <unknown>:0: error: SHT_NOBITS section '.bss' cannot have non-zero initializers 16 .long 1 17