[PATCH] D42299: [ELF] Add test for interaction of --gc-sections and undefined references

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 19 14:27:54 PST 2018


ruiu accepted this revision.
ruiu added a comment.
This revision is now accepted and ready to land.

LGTM



================
Comment at: test/ELF/gc-sections-no-undef-error.s:7-8
+# gc-sections.
+# RUN: not ld.lld %t.o -o %t 2> %t.err
+# RUN: FileCheck %s --input-file %t.err
+# CHECK: error: undefined symbol: undefined
----------------
You can write this in one line.

  not ld.lld %t.o -o %t 2>&1 | FileCheck %s


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D42299





More information about the llvm-commits mailing list