Update tests to use the canonical error message format with `error:` prefix and file:section information. Add `--implicit-check-not=error:` to ensure no unexpected errors are produced. This commit focuses on "out of range" and "not aligned" errors.
14 lines
437 B
ArmAsm
14 lines
437 B
ArmAsm
// REQUIRES: x86
|
|
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/shared.s -o %t.o
|
|
// RUN: ld.lld -shared -o %t.so %t.o
|
|
|
|
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
|
|
// RUN: ld.lld -o /dev/null %t.o %t.so
|
|
// RUN: not ld.lld -o /dev/null -static %t.o %t.so 2>&1 | FileCheck %s --implicit-check-not=error:
|
|
|
|
// CHECK: error: attempted static link of dynamic object {{.*}}.so
|
|
|
|
.global _start
|
|
_start:
|
|
nop
|