blob: 0e63ae76004792342676b3dcde88a7fd991261db [file] [log] [blame]
// RUN: clang-cc -fblocks -emit-pch %S/t1.c -o %t1.ast &&
// RUN: clang-cc -fblocks -emit-pch %S/t2.c -o %t2.ast &&
// RUN: index-test %t1.ast %t2.ast -point-at %S/foo.h:1:14 -print-defs > %t &&
// RUN: cat %t | count 1 &&
// RUN: grep 't2.c:3:5,' %t &&
// RUN: index-test %t1.ast %t2.ast -point-at %S/foo.h:3:9 -print-defs > %t &&
// RUN: cat %t | count 1 &&
// RUN: grep 't1.c:3:6,' %t &&
// RUN: index-test %t1.ast %t2.ast -point-at %S/foo.h:4:9 -print-defs > %t &&
// RUN: cat %t | count 1 &&
// RUN: grep 't2.c:5:6,' %t &&
// RUN: index-test %t1.ast %t2.ast -point-at %S/t1.c:8:7 -print-defs > %t &&
// RUN: cat %t | count 1 &&
// RUN: grep 't2.c:5:6,' %t