1 // Tests trace pc guard coverage collection.
3 // REQUIRES: x86_64-linux
10 // RUN: %clangxx -O0 -fsanitize-coverage=trace-pc-guard %s -o %t
11 // RUN: %env_tool_opts=coverage=1 %t 2>&1 | FileCheck %s
17 fprintf(stderr
, "foo\n");
22 fprintf(stderr
, "main\n");
28 // CHECK: SanitizerCoverage: ./sanitizer_coverage_symbolize.{{.*}}.sancov: 2 PCs written