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/t1.c:8:7 -print-decls > %t |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 5 | // RUN: cat %t | count 3 |
| 6 | // RUN: grep 'foo.h:4:6,' %t | count 2 |
| 7 | // RUN: grep 't2.c:5:6,' %t |
Argyrios Kyrtzidis | 3e8efd9 | 2009-07-21 00:06:46 +0000 | [diff] [blame] | 8 | |
Daniel Dunbar | 1787b70 | 2009-11-08 01:46:19 +0000 | [diff] [blame] | 9 | // RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/t1.c:5:47 -print-decls > %t |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 10 | // RUN: cat %t | count 1 |
| 11 | // RUN: grep 't1.c:5:12,' %t |
Argyrios Kyrtzidis | 3e8efd9 | 2009-07-21 00:06:46 +0000 | [diff] [blame] | 12 | |
Daniel Dunbar | 1787b70 | 2009-11-08 01:46:19 +0000 | [diff] [blame] | 13 | // RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/t1.c:6:20 -print-decls > %t |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 14 | // RUN: cat %t | count 1 |
| 15 | // RUN: grep 't1.c:3:19,' %t |
Argyrios Kyrtzidis | 1258554 | 2009-07-14 03:18:40 +0000 | [diff] [blame] | 16 | |
| 17 | // field test |
Argyrios Kyrtzidis | 3e8efd9 | 2009-07-21 00:06:46 +0000 | [diff] [blame] | 18 | |
Daniel Dunbar | 1787b70 | 2009-11-08 01:46:19 +0000 | [diff] [blame] | 19 | // RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/t1.c:21:6 -print-decls > %t |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 20 | // RUN: cat %t | count 1 |
| 21 | // RUN: grep 't1.c:12:7,' %t |
Argyrios Kyrtzidis | 3e8efd9 | 2009-07-21 00:06:46 +0000 | [diff] [blame] | 22 | |
Daniel Dunbar | 1787b70 | 2009-11-08 01:46:19 +0000 | [diff] [blame] | 23 | // RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/t1.c:22:21 -print-decls > %t |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 24 | // RUN: cat %t | count 1 |
Argyrios Kyrtzidis | 3e8efd9 | 2009-07-21 00:06:46 +0000 | [diff] [blame] | 25 | // RUN: grep 't1.c:16:7,' %t |