diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-10-21 20:55:34 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-10-21 20:55:34 +0000 |
commit | 12a6c9e441b990512158e2cbf6d320e70b284fa8 (patch) | |
tree | 228d803067a05365ec9ca8d2abfa125661222560 /clang/test/Index/c-index-getCursor-pp.c | |
parent | 31041a9967af237eae9ef23fc8b57c16a4428bb0 (diff) | |
download | bcm5719-llvm-12a6c9e441b990512158e2cbf6d320e70b284fa8.tar.gz bcm5719-llvm-12a6c9e441b990512158e2cbf6d320e70b284fa8.zip |
Update clang_getCursor() test to check searches on include directives
llvm-svn: 117063
Diffstat (limited to 'clang/test/Index/c-index-getCursor-pp.c')
-rw-r--r-- | clang/test/Index/c-index-getCursor-pp.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/clang/test/Index/c-index-getCursor-pp.c b/clang/test/Index/c-index-getCursor-pp.c index 67fcfef2e4b..5f3c1df990b 100644 --- a/clang/test/Index/c-index-getCursor-pp.c +++ b/clang/test/Index/c-index-getCursor-pp.c @@ -6,13 +6,17 @@ void OBSCURE(func)(int x) { OBSCURE(T) DECORATION value; } -// RUN: c-index-test -cursor-at=%s:1:11 %s | FileCheck -check-prefix=CHECK-1 %s +#include "a.h" + +// RUN: c-index-test -cursor-at=%s:1:11 -I%S/Inputs %s | FileCheck -check-prefix=CHECK-1 %s // CHECK-1: macro definition=OBSCURE -// RUN: c-index-test -cursor-at=%s:2:14 %s | FileCheck -check-prefix=CHECK-2 %s +// RUN: c-index-test -cursor-at=%s:2:14 -I%S/Inputs %s | FileCheck -check-prefix=CHECK-2 %s // CHECK-2: macro definition=DECORATION -// RUN: c-index-test -cursor-at=%s:5:7 %s | FileCheck -check-prefix=CHECK-3 %s +// RUN: c-index-test -cursor-at=%s:5:7 -I%S/Inputs %s | FileCheck -check-prefix=CHECK-3 %s // CHECK-3: macro instantiation=OBSCURE:1:9 -// RUN: c-index-test -cursor-at=%s:6:6 %s | FileCheck -check-prefix=CHECK-4 %s +// RUN: c-index-test -cursor-at=%s:6:6 -I%S/Inputs %s | FileCheck -check-prefix=CHECK-4 %s // CHECK-4: macro instantiation=OBSCURE:1:9 -// RUN: c-index-test -cursor-at=%s:6:19 %s | FileCheck -check-prefix=CHECK-5 %s +// RUN: c-index-test -cursor-at=%s:6:19 -I%S/Inputs %s | FileCheck -check-prefix=CHECK-5 %s // CHECK-5: macro instantiation=DECORATION:2:9 +// RUN: c-index-test -cursor-at=%s:9:10 -I%S/Inputs %s | FileCheck -check-prefix=CHECK-6 %s +// CHECK-6: inclusion directive=a.h |