Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / FixIt / no-macro-fixit.c
bloba814dc7a93502f6c402e1530196ba878107e42ba
1 // RUN: %clang_cc1 -pedantic -fixit -x c %s
3 #define va_arg(ap, type) __builtin_va_arg(ap, type)
4 typedef __builtin_va_list va_list;
6 void myFunc(void) {
7 va_list values;
9 int value;
11 while (value = va_arg(values, int)) { // expected-warning {{using the result of an assignment as a condition without parentheses}} \
12 // expected-note {{use '==' to turn this assignment into an equality comparison}} \
13 // expected-note {{place parentheses around the assignment to silence this warning}}