blob: 56051d52e3caeff5f4f53f8091783246d297cdbb [file] [log] [blame]
Daniel Dunbar4fcfde42009-11-08 01:45:36 +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
Argyrios Kyrtzidis19b732a2009-07-30 00:03:55 +00003
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00004// RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/t1.m:12:12 -print-decls > %t
5// RUN: cat %t | count 2
6// RUN: grep 'objc.h:2:9,' %t | count 2
Argyrios Kyrtzidis19b732a2009-07-30 00:03:55 +00007
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00008// RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/objc.h:5:13 -print-decls > %t
9// RUN: cat %t | count 3
10// RUN: grep 'objc.h:5:1,' %t | count 2
11// RUN: grep 't1.m:15:1,' %t | count 1
Argyrios Kyrtzidis19b732a2009-07-30 00:03:55 +000012
Daniel Dunbar4fcfde42009-11-08 01:45:36 +000013// RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/objc.h:10:13 -print-decls > %t
14// RUN: cat %t | count 3
15// RUN: grep 'objc.h:10:1,' %t | count 2
Argyrios Kyrtzidis19b732a2009-07-30 00:03:55 +000016// RUN: grep 't2.m:11:1,' %t | count 1