blob: bf0d59a0588044809577300da5e91ada5808e6f7 [file] [log] [blame]
Argyrios Kyrtzidisf03e7342011-11-16 02:34:55 +00001
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
Rafael Espindolac0f037d2013-07-25 14:52:56 +00009// RUN: env CINDEXTEST_FAILONERROR=1 not c-index-test -cursor-at=%S/targeted-nested1.h:2:16 %s -include %t.h \
Argyrios Kyrtzidisf03e7342011-11-16 02:34:55 +000010// RUN: -Xclang -error-on-deserialized-decl=NestedVar1 2>&1 \
11// RUN: | FileCheck %s
12
13// CHECK: error: NestedVar1 was deserialized