blob: 45ce83876cfebadc661dd3a4ede63e882ac9cf7d [file] [log] [blame]
Argyrios Kyrtzidis19b732a2009-07-30 00:03:55 +00001// RUN: clang-cc -emit-pch %S/t1.m -o %t1.m.ast &&
2// RUN: clang-cc -emit-pch %S/t2.m -o %t2.m.ast &&
3
4// RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/objc.h:5:13 -print-refs > %t &&
5// RUN: cat %t | count 1 &&
6// RUN: grep 't1.m:6:3,' %t &&
7
8// RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/objc.h:6:13 -print-refs > %t &&
9// RUN: cat %t | count 2 &&
10// RUN: grep 't1.m:7:3,' %t &&
11// RUN: grep 't2.m:7:3,' %t &&
12
13// RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/objc.h:10:13 -print-refs > %t &&
14// RUN: cat %t | count 2 &&
15// RUN: grep 't1.m:6:3,' %t &&
16// RUN: grep 't2.m:6:3,' %t &&
17
18// RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/t1.m:6:15 -print-decls > %t &&
19// RUN: cat %t | count 6 &&
20// RUN: grep 'objc.h:5:1,' %t | count 2 &&
21// RUN: grep 'objc.h:10:1,' %t | count 2 &&
22// RUN: grep 't1.m:15:1,' %t &&
23// RUN: grep 't2.m:11:1,' %t &&
24
25// RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/t1.m:7:15 -print-decls > %t &&
26// RUN: cat %t | count 3 &&
27// RUN: grep 'objc.h:6:1,' %t | count 2 &&
28// RUN: grep 't1.m:18:1,' %t &&
29
30// RUN: index-test %t2.m.ast %t1.m.ast -point-at %S/t2.m:6:15 -print-decls > %t &&
31// RUN: cat %t | count 3 &&
32// RUN: grep 'objc.h:10:1,' %t | count 2 &&
33// RUN: grep 't2.m:11:1,' %t &&
34
35// RUN: index-test %t2.m.ast %t1.m.ast -point-at %S/t2.m:7:15 -print-decls > %t &&
36// RUN: cat %t | count 3 &&
37// RUN: grep 'objc.h:6:1,' %t | count 2 &&
38// RUN: grep 't1.m:18:1,' %t