summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMatt Morehouse <mascasa@google.com>2018-07-12 18:09:03 +0000
committerMatt Morehouse <mascasa@google.com>2018-07-12 18:09:03 +0000
commit28aa84d6feb385802d7543ab8ebe915c9316a30d (patch)
tree3a96884e75552a01544049d0900c93afa9fed386 /test
parentddbfd332b6ef472bf454beba65120896c900bdb3 (diff)
[libFuzzer] Use lld-available for gc-sections.test.
The lld feature is never available for libFuzzer tests, so gc-sections.test never actually runs. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@336926 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/fuzzer/gc-sections.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fuzzer/gc-sections.test b/test/fuzzer/gc-sections.test
index f831688f4..7bc2f831b 100644
--- a/test/fuzzer/gc-sections.test
+++ b/test/fuzzer/gc-sections.test
@@ -1,11 +1,11 @@
-REQUIRES: linux, lld
+REQUIRES: linux, lld-available
No gc-sections:
RUN: %cpp_compiler %S/GcSectionsTest.cpp -o %t
RUN: nm %t | grep UnusedFunctionShouldBeRemovedByLinker | count 1
With gc-sections. Currently, we can't remove unused code.
-RUN: %cpp_compiler %S/GcSectionsTest.cpp -o %t -ffunction-sections -Wl,-gc-sections
+RUN: %cpp_compiler %S/GcSectionsTest.cpp -o %t -fuse-ld=lld -ffunction-sections -Wl,-gc-sections
RUN: nm %t | not grep UnusedFunctionShouldBeRemovedByLinker
With gc sections, with trace-pc. Unused code is removed.