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