Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Lexer / has_feature_coverage_sanitizer.cpp
blobdfbe3973be0430a3952ade1250b5dc4228ce9d22
1 // RUN: %clang -E -fsanitize-coverage=indirect-calls %s -o - | FileCheck --check-prefix=CHECK-SANCOV %s
2 // RUN: %clang -E -fsanitize-coverage=inline-8bit-counters %s -o - | FileCheck --check-prefix=CHECK-SANCOV %s
3 // RUN: %clang -E -fsanitize-coverage=trace-cmp %s -o - | FileCheck --check-prefix=CHECK-SANCOV %s
4 // RUN: %clang -E -fsanitize-coverage=trace-pc %s -o - | FileCheck --check-prefix=CHECK-SANCOV %s
5 // RUN: %clang -E -fsanitize-coverage=trace-pc-guard %s -o - | FileCheck --check-prefix=CHECK-SANCOV %s
6 // RUN: %clang -E %s -o - | FileCheck --check-prefix=CHECK-NO-SANCOV %s
8 #if __has_feature(coverage_sanitizer)
9 int SancovEnabled();
10 #else
11 int SancovDisabled();
12 #endif
14 // CHECK-SANCOV: SancovEnabled
15 // CHECK-NO-SANCOV: SancovDisabled