blob: 50a233d75ba5d472fcec87f240820f1d51688080 [file] [log] [blame]
Daniel Dunbar218e0b72009-07-30 02:43:05 +00001// RUN: clang-cc -fblocks -emit-pch %S/t1.c -o %t1.ast &&
2// RUN: clang-cc -fblocks -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/t1.c:8:7 -print-decls > %t &&
5// RUN: cat %t | count 3 &&
6// RUN: grep 'foo.h:4:6,' %t | count 2 &&
7// RUN: grep 't2.c:5:6,' %t &&
8
9// RUN: index-test %t1.ast %t2.ast -point-at %S/t1.c:5:47 -print-decls > %t &&
10// RUN: cat %t | count 1 &&
11// RUN: grep 't1.c:5:12,' %t &&
12
13// RUN: index-test %t1.ast %t2.ast -point-at %S/t1.c:6:20 -print-decls > %t &&
14// RUN: cat %t | count 1 &&
15// RUN: grep 't1.c:3:19,' %t &&
Argyrios Kyrtzidis12585542009-07-14 03:18:40 +000016
17// field test
Argyrios Kyrtzidis3e8efd92009-07-21 00:06:46 +000018
19// RUN: index-test %t1.ast %t2.ast -point-at %S/t1.c:21:6 -print-decls > %t &&
20// RUN: cat %t | count 1 &&
21// RUN: grep 't1.c:12:7,' %t &&
22
23// RUN: index-test %t1.ast %t2.ast -point-at %S/t1.c:22:21 -print-decls > %t &&
24// RUN: cat %t | count 1 &&
25// RUN: grep 't1.c:16:7,' %t