Argyrios Kyrtzidis | 19b732a | 2009-07-30 00:03:55 +0000 | [diff] [blame^] | 1 | // 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/t1.m:12:12 -print-decls > %t && |
| 5 | // RUN: cat %t | count 2 && |
| 6 | // RUN: grep 'objc.h:2:9,' %t | count 2 && |
| 7 | |
| 8 | // 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 && |
| 12 | |
| 13 | // 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 && |
| 16 | // RUN: grep 't2.m:11:1,' %t | count 1 |