Fangrui Song 2f09bd2fc2 [ELF,test] Improve error/warning message checks
Update tests to include proper `error:` or `warning:` prefixes and
file/section information in CHECK patterns. Add
--implicit-check-not=error: to ensure no unexpected errors are produced.
2026-02-01 11:25:22 -08:00

10 lines
274 B
ArmAsm

# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
# RUN: ld.lld -o %t1.exe %t.o
# RUN: not ld.lld -o /dev/null %t1.exe 2>&1 | FileCheck %s --implicit-check-not=error:
# CHECK: error: {{.*}}: unknown file type
.global _start
_start:
ret