Daniel Dunbar | 1787b70 | 2009-11-08 01:46:19 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -fblocks -emit-pch %S/Inputs/t1.c -o %t1.ast |
| 2 | // RUN: clang-cc -fblocks -emit-pch %S/Inputs/t2.c -o %t2.ast |
Argyrios Kyrtzidis | 3e8efd9 | 2009-07-21 00:06:46 +0000 | [diff] [blame] | 3 | |
Daniel Dunbar | 1787b70 | 2009-11-08 01:46:19 +0000 | [diff] [blame] | 4 | // RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/foo.h:1:14 -print-defs > %t |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 5 | // RUN: cat %t | count 1 |
| 6 | // RUN: grep 't2.c:3:5,' %t |
Argyrios Kyrtzidis | 3e8efd9 | 2009-07-21 00:06:46 +0000 | [diff] [blame] | 7 | |
Daniel Dunbar | 1787b70 | 2009-11-08 01:46:19 +0000 | [diff] [blame] | 8 | // RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/foo.h:3:9 -print-defs > %t |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 9 | // RUN: cat %t | count 1 |
| 10 | // RUN: grep 't1.c:3:6,' %t |
Argyrios Kyrtzidis | 3e8efd9 | 2009-07-21 00:06:46 +0000 | [diff] [blame] | 11 | |
Daniel Dunbar | 1787b70 | 2009-11-08 01:46:19 +0000 | [diff] [blame] | 12 | // RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/foo.h:4:9 -print-defs > %t |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 13 | // RUN: cat %t | count 1 |
| 14 | // RUN: grep 't2.c:5:6,' %t |
Argyrios Kyrtzidis | 3e8efd9 | 2009-07-21 00:06:46 +0000 | [diff] [blame] | 15 | |
Daniel Dunbar | 1787b70 | 2009-11-08 01:46:19 +0000 | [diff] [blame] | 16 | // RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/t1.c:8:7 -print-defs > %t |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 17 | // RUN: cat %t | count 1 |
Argyrios Kyrtzidis | 3e8efd9 | 2009-07-21 00:06:46 +0000 | [diff] [blame] | 18 | // RUN: grep 't2.c:5:6,' %t |