[llvm] 9423961 - [MC] Test the "cannot have fixups" error
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 22 00:04:21 PST 2024
Author: Fangrui Song
Date: 2024-12-22T00:04:16-08:00
New Revision: 9423961f259f49007dc9cdea7344094a6fdf1afb
URL: https://github.com/llvm/llvm-project/commit/9423961f259f49007dc9cdea7344094a6fdf1afb
DIFF: https://github.com/llvm/llvm-project/commit/9423961f259f49007dc9cdea7344094a6fdf1afb.diff
LOG: [MC] Test the "cannot have fixups" error
Added:
Modified:
llvm/test/MC/ELF/nobits-non-zero-value.s
Removed:
################################################################################
diff --git a/llvm/test/MC/ELF/nobits-non-zero-value.s b/llvm/test/MC/ELF/nobits-non-zero-value.s
index 9b2bea6278e695..ff43e69baaedcf 100644
--- a/llvm/test/MC/ELF/nobits-non-zero-value.s
+++ b/llvm/test/MC/ELF/nobits-non-zero-value.s
@@ -1,4 +1,4 @@
-# RUN: not llvm-mc -filetype=obj -triple=x86_64 %s -o /dev/null 2>&1 | FileCheck %s
+# RUN: not llvm-mc -filetype=obj -triple=x86_64 %s -o /dev/null 2>&1 | FileCheck %s --implicit-check-not=error:
## -filetype=asm does not check the error.
# RUN: llvm-mc -triple=x86_64 %s
@@ -20,3 +20,7 @@
# CHECK: <unknown>:0: error: SHT_NOBITS section '.bss' cannot have non-zero initializers
.long 1
+
+.section .bss1,"aw",%nobits
+# CHECK: <unknown>:0: error: SHT_NOBITS section '.bss1' cannot have fixups
+.quad foo
More information about the llvm-commits
mailing list