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