1 2 #include "targeted-top.h" 3 4 // This tests that we will correctly error out on the deserialized decl. 5 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 13 14 // CHECK: error: 'NestedVar1' was deserialized 15