blob: 3dc635b27248d0f80a5f43adce427399137afaca [file] [log] [blame]
Argyrios Kyrtzidis921bd262009-07-06 00:03:47 +00001// RUN: clang-cc -emit-pch %S/t1.c -o %t1.ast &&
2// RUN: clang-cc -emit-pch %S/t2.c -o %t2.ast &&
Argyrios Kyrtzidis3e8efd92009-07-21 00:06:46 +00003
4// RUN: index-test %t1.ast %t2.ast -point-at %S/foo.h:1:14 -print-defs > %t &&
5// RUN: cat %t | count 1 &&
6// RUN: grep 't2.c:3:5,' %t &&
7
8// RUN: index-test %t1.ast %t2.ast -point-at %S/foo.h:3:9 -print-defs > %t &&
9// RUN: cat %t | count 1 &&
10// RUN: grep 't1.c:3:6,' %t &&
11
12// RUN: index-test %t1.ast %t2.ast -point-at %S/foo.h:4:9 -print-defs > %t &&
13// RUN: cat %t | count 1 &&
14// RUN: grep 't2.c:5:6,' %t &&
15
16// RUN: index-test %t1.ast %t2.ast -point-at %S/t1.c:8:7 -print-defs > %t &&
17// RUN: cat %t | count 1 &&
18// RUN: grep 't2.c:5:6,' %t