blob: 1a1af579c011ae4dbd450021d72ff79d280d0115 [file] [log] [blame]
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00001// RUN: clang-cc -fblocks -emit-pch %S/t1.c -o %t1.ast
2// RUN: clang-cc -fblocks -emit-pch %S/t2.c -o %t2.ast
Argyrios Kyrtzidis3e8efd92009-07-21 00:06:46 +00003
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00004// 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
Argyrios Kyrtzidis3e8efd92009-07-21 00:06:46 +00007
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00008// 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
Argyrios Kyrtzidis3e8efd92009-07-21 00:06:46 +000011
Daniel Dunbar4fcfde42009-11-08 01:45:36 +000012// 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
Argyrios Kyrtzidis3e8efd92009-07-21 00:06:46 +000015
Daniel Dunbar4fcfde42009-11-08 01:45:36 +000016// RUN: index-test %t1.ast %t2.ast -point-at %S/t1.c:8:7 -print-defs > %t
17// RUN: cat %t | count 1
Argyrios Kyrtzidis3e8efd92009-07-21 00:06:46 +000018// RUN: grep 't2.c:5:6,' %t