Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / test / asan / TestCases / coverage-disabled.cpp
blob2a283b46521213ca85472c7564bb2d29107b0b64
1 // Test that no data is collected without a runtime flag.
2 //
3 // RUN: rm -rf %t-dir
4 // RUN: mkdir -p %t-dir
5 //
6 // RUN: %clangxx_asan -fsanitize-coverage=func,trace-pc-guard %s -o %t
7 //
8 // RUN: %env_asan_opts=coverage_direct=0:coverage_dir='"%t-dir"':verbosity=1 %run %t
9 // RUN: not %sancov print %t-dir/*.sancov 2>&1
11 // UNSUPPORTED: android
13 int main(int argc, char **argv) {
14 return 0;