[lld] [lld][ELF] Suppress `--orphan-handling=error/warn` without `SECTIONS` (PR #93630)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Tue May 28 21:44:41 PDT 2024


================
@@ -11,6 +11,17 @@
 # RUN: ld.lld -shared --orphan-handling=place -o %t.out --script %t.script \
 # RUN:   %t.o 2>&1 -verbose  -error-limit=0 | FileCheck %s --check-prefix=DEFAULT
 
+## Check --orphan-handling=error or =warn do not report errors if no linker
+## script is used.
+# RUN: ld.lld -shared -orphan-handling=error -o /dev/null %t.o 2>&1 | \
----------------
MaskRay wrote:

Replace FileCheck with `| count 0`

https://github.com/llvm/llvm-project/pull/93630


More information about the llvm-commits mailing list