[ELF] - Add a test for --no-warn-symbol-ordering.
authorGeorge Rimar <grimar@accesssoftek.com>
Tue, 17 Jul 2018 12:04:23 +0000 (12:04 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Tue, 17 Jul 2018 12:04:23 +0000 (12:04 +0000)
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

llvm-svn: 337266

lld/test/ELF/cgprofile-warn.s

index 3d82b22f2a9eef0a0aa2bc7bebada980a7e0a5bd..bfb89c4c3b5745d7948b1541feda197886b3c5ee 100644 (file)
@@ -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