[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / FixIt / no-macro-fixit.c
blob8e1d400e5087421e870d29732626513a7da7f8ed
1 // RUN: %clang_cc1 -pedantic -fixit -x c %s
2 // rdar://9091893
4 #define va_arg(ap, type) __builtin_va_arg(ap, type)
5 typedef __builtin_va_list va_list;
7 void myFunc(void) {
8 va_list values;
10 int value;
12 while (value = va_arg(values, int)) { // expected-warning {{using the result of an assignment as a condition without parentheses}} \
13 // expected-note {{use '==' to turn this assignment into an equality comparison}} \
14 // expected-note {{place parentheses around the assignment to silence this warning}}