26 lines · plain
1# FIXME: Disabled on Windows because -fPIC cannot be used to compile for Windows.2UNSUPPORTED: target={{.*windows.*}}3# FIXME: CreatePCArray() emits PLT stub addresses for entry blocks, which are ignored by TracePC::PrintCoverage().4UNSUPPORTED: target=s390x{{.*}}5UNSUPPORTED: darwin6 7RUN: mkdir -p %t.dir && cd %t.dir8RUN: %cpp_compiler -mllvm -use-unknown-locations=Disable %S/NullDerefTest.cpp -o %t.dir/NullDerefTest9RUN: %cpp_compiler -mllvm -use-unknown-locations=Disable %S/DSO1.cpp -fPIC %ld_flags_rpath_so1 -O0 -shared -o %dynamiclib110RUN: %cpp_compiler -mllvm -use-unknown-locations=Disable %S/DSO2.cpp -fPIC %ld_flags_rpath_so2 -O0 -shared -o %dynamiclib211RUN: %cpp_compiler -mllvm -use-unknown-locations=Disable %S/DSOTestMain.cpp %S/DSOTestExtra.cpp %ld_flags_rpath_exe1 %ld_flags_rpath_exe2 -o %t.dir/DSOTest12 13CHECK: COVERAGE:14CHECK: COVERED_FUNC: {{.*}}LLVMFuzzerTestOneInput {{.*}}NullDerefTest.cpp:1415RUN: not %run %t.dir/NullDerefTest -print_coverage=1 2>&1 | FileCheck %s16 17RUN: %run %t.dir/DSOTest -print_coverage=1 -runs=0 2>&1 | FileCheck %s --check-prefix=DSO18DSO: COVERAGE:19DSO-DAG: COVERED_FUNC:{{.*}}DSO120DSO-DAG: COVERED_FUNC:{{.*}}DSO221DSO-DAG: COVERED_FUNC:{{.*}}LLVMFuzzerTestOneInput{{.*}}DSOTestMain22DSO-DAG: UNCOVERED_PC:{{.*}}DSO123DSO-DAG: UNCOVERED_PC:{{.*}}DSO224DSO-DAG: UNCOVERED_PC:{{.*}}DSOTestMain25DSO-DAG: UNCOVERED_FUNC:{{.*}}Uncovered126