| 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 |
| 10 | // |
| 11 | // UNSUPPORTED: android |
| 12 | |
| 13 | int main(int argc, char **argv) { |
| 14 | return 0; |
| 15 | } |
| 16 |
