1# FIXME: Disabled on Windows because -fPIC cannot be used to compile for Windows. 2UNSUPPORTED: windows 3# FIXME: CreatePCArray() emits PLT stub addresses for entry blocks, which are ignored by TracePC::PrintCoverage(). 4XFAIL: s390x 5RUN: %cpp_compiler -mllvm -use-unknown-locations=Disable %S/NullDerefTest.cpp -o %t-NullDerefTest 6RUN: %cpp_compiler -mllvm -use-unknown-locations=Disable %S/DSO1.cpp -fPIC %ld_flags_rpath_so1 -O0 -shared -o %dynamiclib1 7RUN: %cpp_compiler -mllvm -use-unknown-locations=Disable %S/DSO2.cpp -fPIC %ld_flags_rpath_so2 -O0 -shared -o %dynamiclib2 8RUN: %cpp_compiler -mllvm -use-unknown-locations=Disable %S/DSOTestMain.cpp %S/DSOTestExtra.cpp %ld_flags_rpath_exe1 %ld_flags_rpath_exe2 -o %t-DSOTest 9 10CHECK: COVERAGE: 11CHECK: COVERED_FUNC: {{.*}}LLVMFuzzerTestOneInput {{.*}}NullDerefTest.cpp:14 12RUN: not %run %t-NullDerefTest -print_coverage=1 2>&1 | FileCheck %s 13 14RUN: %run %t-DSOTest -print_coverage=1 -runs=0 2>&1 | FileCheck %s --check-prefix=DSO 15DSO: COVERAGE: 16DSO-DAG: COVERED_FUNC:{{.*}}DSO1 17DSO-DAG: COVERED_FUNC:{{.*}}DSO2 18DSO-DAG: COVERED_FUNC:{{.*}}LLVMFuzzerTestOneInput{{.*}}DSOTestMain 19DSO-DAG: UNCOVERED_PC:{{.*}}DSO1 20DSO-DAG: UNCOVERED_PC:{{.*}}DSO2 21DSO-DAG: UNCOVERED_PC:{{.*}}DSOTestMain 22DSO-DAG: UNCOVERED_FUNC:{{.*}}Uncovered1 23