1*f4a2713aSLionel Sambuc #pragma clang diagnostic ignored "-Wtautological-compare" 2*f4a2713aSLionel Sambuc #include "pragma_disable_warning.h" 3*f4a2713aSLionel Sambuc main(int argc,const char * argv[])4*f4a2713aSLionel Sambucint main (int argc, const char * argv[]) 5*f4a2713aSLionel Sambuc { 6*f4a2713aSLionel Sambuc #pragma clang diagnostic push 7*f4a2713aSLionel Sambuc #pragma clang diagnostic ignored "-Wdeprecated-declarations" 8*f4a2713aSLionel Sambuc int x=0; 9*f4a2713aSLionel Sambuc #pragma clang diagnostic pop 10*f4a2713aSLionel Sambuc 11*f4a2713aSLionel Sambuc return x; 12*f4a2713aSLionel Sambuc } 13*f4a2713aSLionel Sambuc foo()14*f4a2713aSLionel Sambucvoid foo() { int b=0; while (b==b); } 15*f4a2713aSLionel Sambuc 16*f4a2713aSLionel Sambuc // RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_FAILONERROR=1 c-index-test -test-load-source-reparse 5 local \ 17*f4a2713aSLionel Sambuc // RUN: -I%S/Inputs \ 18*f4a2713aSLionel Sambuc // RUN: %s -Wall -Werror | FileCheck %s 19*f4a2713aSLionel Sambuc 20*f4a2713aSLionel Sambuc // CHECK: pragma-diag-reparse.c:8:7: VarDecl=x:8:7 (Definition) Extent=[8:3 - 8:10] 21