[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

llvm-svn: 337266
This commit is contained in:
George Rimar 2018-07-17 12:04:23 +00:00
parent 904ed692a1
commit da4302ce0d
1 changed files with 5 additions and 0 deletions

View 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