Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / test / fuzzer / full-coverage.test
blobf189962399b0f8cd442afc4314d360424e03872c
1 # FIXME: Disabled on Windows because -fPIC cannot be used to compile for Windows.
2 UNSUPPORTED: target={{.*windows.*}}
3 # FIXME: See coverage.test.  Using UNSUPPORTED here due to random failures.
4 UNSUPPORTED: target=s390x{{.*}}
5 RUN: %cpp_compiler %S/DSO1.cpp -fPIC %ld_flags_rpath_so1 -O0 -shared -o %dynamiclib1
6 RUN: %cpp_compiler %S/DSO2.cpp -fPIC %ld_flags_rpath_so2 -O0 -shared -o %dynamiclib2
7 RUN: %cpp_compiler %S/DSOTestMain.cpp %S/DSOTestExtra.cpp %ld_flags_rpath_exe1 %ld_flags_rpath_exe2 -o %t-DSOTest
9 RUN: %run %t-DSOTest -print_full_coverage=1 %S/dso-cov-input.txt 2>&1 | FileCheck %s
10 CHECK: FULL COVERAGE:
11 CHECK-DAG: U{{( [0-9]+)*}}
12 CHECK-DAG: C{{( [0-9]+)*}}
13 CHECK-DAG: U{{( [0-9]+)*}}
14 CHECK-DAG: U{{( [0-9]+)*}}
15 CHECK-DAG: C{{( [0-9]+)*}}
16 CHECK-DAG: U{{( [0-9]+)*}}