From 222e2a7620e6520ffaf4fc4e69d79c18da31542e Mon Sep 17 00:00:00 2001 From: "Zancanaro; Carlo" Date: Mon, 24 Sep 2012 09:58:17 +1000 Subject: Add the clang library to the repo (with some of my changes, too). --- clang/test/Index/preamble-reparse-chained.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 clang/test/Index/preamble-reparse-chained.c (limited to 'clang/test/Index/preamble-reparse-chained.c') diff --git a/clang/test/Index/preamble-reparse-chained.c b/clang/test/Index/preamble-reparse-chained.c new file mode 100644 index 0000000..5cc28f7 --- /dev/null +++ b/clang/test/Index/preamble-reparse-chained.c @@ -0,0 +1,10 @@ +// RUN: c-index-test -write-pch %t.h.pch -x c-header %S/Inputs/a.h +// RUN: env CINDEXTEST_EDITING=1 c-index-test -test-load-source-reparse 5 all -I%S/Inputs -include %t.h %s | FileCheck %s +#include "a.h" +#include "b.h" + +A a; +B b; + +// CHECK: a.h:3:13: TypedefDecl=A:3:13 (Definition) Extent=[3:1 - 3:14] +// CHECK: b.h:1:15: TypedefDecl=B:1:15 (Definition) Extent=[1:1 - 1:16] -- cgit v1.2.3