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