1*67e74705SXin Li // RUN: %clang_cc1 -pedantic -fixit -x c %s 2*67e74705SXin Li // rdar://9091893 3*67e74705SXin Li 4*67e74705SXin Li #define va_arg(ap, type) __builtin_va_arg(ap, type) 5*67e74705SXin Li typedef __builtin_va_list va_list; 6*67e74705SXin Li myFunc()7*67e74705SXin Livoid myFunc() { 8*67e74705SXin Li va_list values; 9*67e74705SXin Li 10*67e74705SXin Li int value; 11*67e74705SXin Li 12*67e74705SXin Li while (value = va_arg(values, int)) { // expected-warning {{using the result of an assignment as a condition without parentheses}} \ 13*67e74705SXin Li // expected-note {{use '==' to turn this assignment into an equality comparison}} \ 14*67e74705SXin Li // expected-note {{place parentheses around the assignment to silence this warning}} 15*67e74705SXin Li } 16*67e74705SXin Li } 17