blob: 8ba828328e7a928ff3f0a56a24c87aaacc033f9a [file] [log] [blame]
Argyrios Kyrtzidis220b45c2011-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
9// RUN: env CINDEXTEST_FAILONERROR=1 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