[libFuzzer] Use lld-available for gc-sections.test.
authorMatt Morehouse <mascasa@google.com>
Thu, 12 Jul 2018 18:09:03 +0000 (18:09 +0000)
committerMatt Morehouse <mascasa@google.com>
Thu, 12 Jul 2018 18:09:03 +0000 (18:09 +0000)
The lld feature is never available for libFuzzer tests, so
gc-sections.test never actually runs.

llvm-svn: 336926

compiler-rt/test/fuzzer/gc-sections.test

index f831688..7bc2f83 100644 (file)
@@ -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.