Support for -fsanitize-coverage=trace-pc[-guard] was removed from
libFuzzer, which makes this currently fail.
This commit aligns this Darwin-specific test with its Linux counterpart
which changed in this commit:
3a94519a77
llvm-svn: 352721
14 lines
548 B
Plaintext
14 lines
548 B
Plaintext
REQUIRES: darwin
|
|
|
|
No dead_strip. Unused code is not removed.
|
|
RUN: %cpp_compiler %S/GcSectionsTest.cpp -o %t
|
|
RUN: nm %t | grep UnusedFunctionShouldBeRemovedByLinker
|
|
RUN: %run %t -runs=0 2>&1 | FileCheck %s
|
|
|
|
With dead_strip. Unused code is (currently) not removed. (It would be better if it was removed!)
|
|
RUN: %cpp_compiler %S/GcSectionsTest.cpp -o %t -ffunction-sections -Wl,-dead_strip
|
|
RUN: nm %t | grep UnusedFunctionShouldBeRemovedByLinker
|
|
RUN: %run %t -runs=0 2>&1 | FileCheck %s
|
|
|
|
CHECK-NOT: ERROR: The size of coverage PC tables does not match
|