Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +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 |
Argyrios Kyrtzidis | 19b732a | 2009-07-30 00:03:55 +0000 | [diff] [blame] | 3 | |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame^] | 4 | // RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/objc.h:5:13 -print-refs > %t |
| 5 | // RUN: cat %t | count 1 |
| 6 | // RUN: grep 't1.m:6:3,' %t |
Argyrios Kyrtzidis | 19b732a | 2009-07-30 00:03:55 +0000 | [diff] [blame] | 7 | |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame^] | 8 | // RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/objc.h:6:13 -print-refs > %t |
| 9 | // RUN: cat %t | count 2 |
| 10 | // RUN: grep 't1.m:7:3,' %t |
| 11 | // RUN: grep 't2.m:7:3,' %t |
Argyrios Kyrtzidis | 19b732a | 2009-07-30 00:03:55 +0000 | [diff] [blame] | 12 | |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame^] | 13 | // RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/objc.h:10:13 -print-refs > %t |
| 14 | // RUN: cat %t | count 2 |
| 15 | // RUN: grep 't1.m:6:3,' %t |
| 16 | // RUN: grep 't2.m:6:3,' %t |
Argyrios Kyrtzidis | 19b732a | 2009-07-30 00:03:55 +0000 | [diff] [blame] | 17 | |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame^] | 18 | // RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/t1.m:6:15 -print-decls > %t |
| 19 | // RUN: cat %t | count 6 |
| 20 | // RUN: grep 'objc.h:5:1,' %t | count 2 |
| 21 | // RUN: grep 'objc.h:10:1,' %t | count 2 |
| 22 | // RUN: grep 't1.m:15:1,' %t |
| 23 | // RUN: grep 't2.m:11:1,' %t |
Argyrios Kyrtzidis | 19b732a | 2009-07-30 00:03:55 +0000 | [diff] [blame] | 24 | |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame^] | 25 | // RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/t1.m:7:15 -print-decls > %t |
| 26 | // RUN: cat %t | count 3 |
| 27 | // RUN: grep 'objc.h:6:1,' %t | count 2 |
| 28 | // RUN: grep 't1.m:18:1,' %t |
Argyrios Kyrtzidis | 19b732a | 2009-07-30 00:03:55 +0000 | [diff] [blame] | 29 | |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame^] | 30 | // RUN: index-test %t2.m.ast %t1.m.ast -point-at %S/t2.m:6:15 -print-decls > %t |
| 31 | // RUN: cat %t | count 3 |
| 32 | // RUN: grep 'objc.h:10:1,' %t | count 2 |
| 33 | // RUN: grep 't2.m:11:1,' %t |
Argyrios Kyrtzidis | 19b732a | 2009-07-30 00:03:55 +0000 | [diff] [blame] | 34 | |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame^] | 35 | // RUN: index-test %t2.m.ast %t1.m.ast -point-at %S/t2.m:7:15 -print-decls > %t |
| 36 | // RUN: cat %t | count 3 |
| 37 | // RUN: grep 'objc.h:6:1,' %t | count 2 |
Argyrios Kyrtzidis | 19b732a | 2009-07-30 00:03:55 +0000 | [diff] [blame] | 38 | // RUN: grep 't1.m:18:1,' %t |