1# FIXME: Disabled on Windows because -fPIC cannot be used to compile for Windows. 2UNSUPPORTED: windows 3RUN: %cpp_compiler -mllvm -use-unknown-locations=Disable %S/NullDerefTest.cpp -o %t-NullDerefTest 4RUN: %cpp_compiler -mllvm -use-unknown-locations=Disable %S/DSO1.cpp -fPIC %ld_flags_rpath_so1 -shared -o %dynamiclib1 5RUN: %cpp_compiler -mllvm -use-unknown-locations=Disable %S/DSO2.cpp -fPIC %ld_flags_rpath_so2 -shared -o %dynamiclib2 6RUN: %cpp_compiler -mllvm -use-unknown-locations=Disable %S/DSOTestMain.cpp %S/DSOTestExtra.cpp %ld_flags_rpath_exe1 %ld_flags_rpath_exe2 -o %t-DSOTest 7 8CHECK: COVERAGE: 9CHECK: COVERED_FUNC: {{.*}}LLVMFuzzerTestOneInput {{.*}}NullDerefTest.cpp:13 10RUN: not %run %t-NullDerefTest -print_coverage=1 2>&1 | FileCheck %s 11 12RUN: %run %t-DSOTest -print_coverage=1 -runs=0 2>&1 | FileCheck %s --check-prefix=DSO 13DSO: COVERAGE: 14DSO-DAG: COVERED_FUNC:{{.*}}1{{.*}} 15DSO-DAG: COVERED_FUNC:{{.*}}2{{.*}} 16DSO-DAG: COVERED_FUNC:{{.*}}LLVMFuzzerTestOneInput{{.*}}DSOTestMain 17DSO-DAG: UNCOVERED_PC:{{.*}}1 18DSO-DAG: UNCOVERED_PC:{{.*}}2 19DSO-DAG: UNCOVERED_PC:{{.*}}DSOTestMain 20