Mercurial > hg > CbC > CbC_llvm
view clang/test/FixIt/no-macro-fixit.c @ 222:81f6424ef0e3 llvm-original
LLVM original branch
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 18 Jul 2021 22:10:01 +0900 |
parents | 1d019706d866 |
children | c4bab56944e8 |
line wrap: on
line source
// RUN: %clang_cc1 -pedantic -fixit -x c %s // rdar://9091893 #define va_arg(ap, type) __builtin_va_arg(ap, type) typedef __builtin_va_list va_list; void myFunc() { va_list values; int value; while (value = va_arg(values, int)) { // expected-warning {{using the result of an assignment as a condition without parentheses}} \ // expected-note {{use '==' to turn this assignment into an equality comparison}} \ // expected-note {{place parentheses around the assignment to silence this warning}} } }