This reverts commit52aeacfbf5. There isn't full agreement on a path forward yet, but there is agreement that this shouldn't land as-is. See discussion on https://reviews.llvm.org/D105338 Also reverts unreviewed "[clang] Improve `-Wnull-dereference` diag to be more in-line with reality" This reverts commitf4877c78c0. And all the related changes to tests: This reverts commit9a0152799f. This reverts commit3f7c9cc274. This reverts commit329f8197ef. This reverts commitaa9f58cc2c. This reverts commit2df37d5ddd. This reverts commita72a441812.
23 lines
1.2 KiB
Plaintext
23 lines
1.2 KiB
Plaintext
# FIXME: Disabled on Windows because -fPIC cannot be used to compile for Windows.
|
|
UNSUPPORTED: windows
|
|
# FIXME: CreatePCArray() emits PLT stub addresses for entry blocks, which are ignored by TracePC::PrintCoverage().
|
|
XFAIL: s390x
|
|
RUN: %cpp_compiler -mllvm -use-unknown-locations=Disable %S/NullDerefTest.cpp -o %t-NullDerefTest
|
|
RUN: %cpp_compiler -mllvm -use-unknown-locations=Disable %S/DSO1.cpp -fPIC %ld_flags_rpath_so1 -O0 -shared -o %dynamiclib1
|
|
RUN: %cpp_compiler -mllvm -use-unknown-locations=Disable %S/DSO2.cpp -fPIC %ld_flags_rpath_so2 -O0 -shared -o %dynamiclib2
|
|
RUN: %cpp_compiler -mllvm -use-unknown-locations=Disable %S/DSOTestMain.cpp %S/DSOTestExtra.cpp %ld_flags_rpath_exe1 %ld_flags_rpath_exe2 -o %t-DSOTest
|
|
|
|
CHECK: COVERAGE:
|
|
CHECK: COVERED_FUNC: {{.*}}LLVMFuzzerTestOneInput {{.*}}NullDerefTest.cpp:14
|
|
RUN: not %run %t-NullDerefTest -print_coverage=1 2>&1 | FileCheck %s
|
|
|
|
RUN: %run %t-DSOTest -print_coverage=1 -runs=0 2>&1 | FileCheck %s --check-prefix=DSO
|
|
DSO: COVERAGE:
|
|
DSO-DAG: COVERED_FUNC:{{.*}}DSO1
|
|
DSO-DAG: COVERED_FUNC:{{.*}}DSO2
|
|
DSO-DAG: COVERED_FUNC:{{.*}}LLVMFuzzerTestOneInput{{.*}}DSOTestMain
|
|
DSO-DAG: UNCOVERED_PC:{{.*}}DSO1
|
|
DSO-DAG: UNCOVERED_PC:{{.*}}DSO2
|
|
DSO-DAG: UNCOVERED_PC:{{.*}}DSOTestMain
|
|
DSO-DAG: UNCOVERED_FUNC:{{.*}}Uncovered1
|