xref: /llvm-project/llvm/test/MC/COFF/bss-text.s (revision e13a8a1fc56837e2f21b85b89a445fb4f21500d6)
1# RUN: not llvm-mc -filetype=obj -triple=x86_64-pc-win32 %s -o /dev/null 2>&1 | FileCheck %s
2
3## -filetype=asm does not check the error.
4# RUN: llvm-mc -triple=x86_64-pc-win32 %s
5
6.section uninitialized,"b"
7# MCRelaxableFragment
8# CHECK: {{.*}}.s:[[#@LINE+1]]:3: error: IMAGE_SCN_CNT_UNINITIALIZED_DATA section 'uninitialized' cannot have instructions
9  jmp foo
10
11.bss
12# CHECK: {{.*}}.s:[[#@LINE+1]]:3: error: IMAGE_SCN_CNT_UNINITIALIZED_DATA section '.bss' cannot have instructions
13  addb %al,(%rax)
14