blob: fb540727341a2c9fc07436e946132cafe864f7dd [file] [log] [blame]
Daniel Dunbar1787b702009-11-08 01:46:19 +00001// 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 Kyrtzidis3e8efd92009-07-21 00:06:46 +00003
Daniel Dunbar1787b702009-11-08 01:46:19 +00004// RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/foo.h:1:14 -print-defs > %t
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00005// RUN: cat %t | count 1
6// RUN: grep 't2.c:3:5,' %t
Argyrios Kyrtzidis3e8efd92009-07-21 00:06:46 +00007
Daniel Dunbar1787b702009-11-08 01:46:19 +00008// RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/foo.h:3:9 -print-defs > %t
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00009// RUN: cat %t | count 1
10// RUN: grep 't1.c:3:6,' %t
Argyrios Kyrtzidis3e8efd92009-07-21 00:06:46 +000011
Daniel Dunbar1787b702009-11-08 01:46:19 +000012// RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/foo.h:4:9 -print-defs > %t
Daniel Dunbar4fcfde42009-11-08 01:45:36 +000013// RUN: cat %t | count 1
14// RUN: grep 't2.c:5:6,' %t
Argyrios Kyrtzidis3e8efd92009-07-21 00:06:46 +000015
Daniel Dunbar1787b702009-11-08 01:46:19 +000016// RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/t1.c:8:7 -print-defs > %t
Daniel Dunbar4fcfde42009-11-08 01:45:36 +000017// RUN: cat %t | count 1
Argyrios Kyrtzidis3e8efd92009-07-21 00:06:46 +000018// RUN: grep 't2.c:5:6,' %t