[lld] r337266 - [ELF] - Add a test for --no-warn-symbol-ordering.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 17 05:04:23 PDT 2018


Author: grimar
Date: Tue Jul 17 05:04:23 2018
New Revision: 337266

URL: http://llvm.org/viewvc/llvm-project?rev=337266&view=rev
Log:
[ELF] - Add a test for --no-warn-symbol-ordering.

Mentioned flag was never tested together with
--call-graph-ordering-file. And the following line
was uncovered:

https://github.com/llvm-mirror/lld/blob/master/ELF/Symbols.cpp#L248

Modified:
    lld/trunk/test/ELF/cgprofile-warn.s

Modified: lld/trunk/test/ELF/cgprofile-warn.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/cgprofile-warn.s?rev=337266&r1=337265&r2=337266&view=diff
==============================================================================
--- lld/trunk/test/ELF/cgprofile-warn.s (original)
+++ lld/trunk/test/ELF/cgprofile-warn.s Tue Jul 17 05:04:23 2018
@@ -29,3 +29,8 @@ A:
 # CHECK: {{.*}}.call_graph: no such symbol: adena1
 # CHECK: {{.*}}.call_graph: no such symbol: adena2
 # CHECK: unable to order undefined symbol: poppy
+
+# RUN: ld.lld %t --call-graph-ordering-file %t.call_graph -o /dev/null \
+# RUN:   -noinhibit-exec -icf=all --no-warn-symbol-ordering 2>&1 \
+# RUN:   | FileCheck %s --check-prefix=NOWARN
+# NOWARN-NOT: unable to order




More information about the llvm-commits mailing list