Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / Index / error-on-deserialized.c
blobced34833fd45dfb19005c58ed8408cee42ce2571
2 #include "targeted-top.h"
4 // This tests that we will correctly error out on the deserialized decl.
6 // RUN: export LSAN_OPTIONS=detect_leaks=0
7 // RUN: c-index-test -write-pch %t.h.pch %S/targeted-top.h
8 // RUN: env CINDEXTEST_FAILONERROR=1 not c-index-test -cursor-at=%S/targeted-nested1.h:2:16 %s -include %t.h \
9 // RUN: -Xclang -error-on-deserialized-decl=NestedVar1
10 // RUN: env CINDEXTEST_FAILONERROR=1 not c-index-test -cursor-at=%S/targeted-nested1.h:2:16 %s -include %t.h \
11 // RUN: -Xclang -error-on-deserialized-decl=NestedVar1 2>&1 \
12 // RUN: | FileCheck %s
14 // CHECK: error: 'NestedVar1' was deserialized