[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Index / error-on-deserialized.c
blob78b77e5cddaa4b11aa1c5b331132b37d6feeaf92
2 #include "targeted-top.h"
4 // This tests that we will correctly error out on the deserialized decl.
6 // RUN: c-index-test -write-pch %t.h.pch %S/targeted-top.h
7 // RUN: env CINDEXTEST_FAILONERROR=1 not c-index-test -cursor-at=%S/targeted-nested1.h:2:16 %s -include %t.h \
8 // RUN: -Xclang -error-on-deserialized-decl=NestedVar1
9 // RUN: env CINDEXTEST_FAILONERROR=1 not c-index-test -cursor-at=%S/targeted-nested1.h:2:16 %s -include %t.h \
10 // RUN: -Xclang -error-on-deserialized-decl=NestedVar1 2>&1 \
11 // RUN: | FileCheck %s
13 // CHECK: error: 'NestedVar1' was deserialized