[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / Sema / unused-expr-system-header.c
blob68c7e9962c5f1e4058d8b22917f3e3b73ad12743
1 // RUN: %clang_cc1 -isystem %S/Inputs -fsyntax-only -verify %s
2 #include <unused-expr-system-header.h>
3 void f(int i1, int i2) {
4 POSSIBLY_BAD_MACRO(5);
5 STATEMENT_EXPR_MACRO(5);
6 COMMA_MACRO_1(i1 == i2, f(i1, i2)); // expected-warning {{comparison result unused}} \
7 // expected-note {{equality comparison}}
8 COMMA_MACRO_2(i1 == i2, f(i1, i2));
9 COMMA_MACRO_3(i1 == i2, f(i1, i2)); // expected-warning {{comparison result unused}} \
10 // expected-note {{equality comparison}}
11 COMMA_MACRO_4(i1 == i2, f(i1, i2));