Skip to content

Commit 9423961

Browse files
committed
[MC] Test the "cannot have fixups" error
1 parent c193124 commit 9423961

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

llvm/test/MC/ELF/nobits-non-zero-value.s

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: not llvm-mc -filetype=obj -triple=x86_64 %s -o /dev/null 2>&1 | FileCheck %s
1+
# RUN: not llvm-mc -filetype=obj -triple=x86_64 %s -o /dev/null 2>&1 | FileCheck %s --implicit-check-not=error:
22

33
## -filetype=asm does not check the error.
44
# RUN: llvm-mc -triple=x86_64 %s
@@ -20,3 +20,7 @@
2020

2121
# CHECK: <unknown>:0: error: SHT_NOBITS section '.bss' cannot have non-zero initializers
2222
.long 1
23+
24+
.section .bss1,"aw",%nobits
25+
# CHECK: <unknown>:0: error: SHT_NOBITS section '.bss1' cannot have fixups
26+
.quad foo

0 commit comments

Comments
 (0)