brintos

brintos / llvm-project-archived public Read only

0
0
Text · 621 B · ced3483 Raw
15 lines · c
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=07// RUN: c-index-test -write-pch %t.h.pch %S/targeted-top.h8// 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=NestedVar110// 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 %s13 14// CHECK: error: 'NestedVar1' was deserialized15