clang/test/Frontend/custom-diag-werror-interaction.c
raw| 1 | // RUN: %clang_cc1 -emit-llvm-only -fprofile-instrument=clang -fcoverage-mcdc -Werror -Wno-error=pgo-coverage -Wno-unused-value %s -verify |
| 2 | |
| 3 | int foo(int x); |
| 4 | |
| 5 | int main(void) { |
| 6 | int a, b, c; |
| 7 | a && foo( b && c ); // expected-warning{{unsupported MC/DC boolean expression; contains an operation with a nested boolean expression. Expression will not be covered}} |
| 8 | return 0; |
| 9 | } |