Argyrios Kyrtzidis | 921bd26 | 2009-07-06 00:03:47 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -emit-pch %S/t1.c -o %t1.ast && |
| 2 | // RUN: clang-cc -emit-pch %S/t2.c -o %t2.ast && |
Argyrios Kyrtzidis | 3e8efd9 | 2009-07-21 00:06:46 +0000 | [diff] [blame^] | 3 | |
| 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 |