diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-09-08 17:18:41 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-09-08 17:18:41 +0000 |
commit | 8f7c540ac42370c40ebcdc4b69018c938faf94ec (patch) | |
tree | aad315d5d8733b9cd0711bb671a8192436509530 /test/Index/c-index-getCursor-pp.c | |
parent | 5471bc85b69912e3b448de004498a80c0de32296 (diff) |
[libclang] Fix annotation and getting a "macro expansion" cursor
for a builtin macro expansion.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139298 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Index/c-index-getCursor-pp.c')
-rw-r--r-- | test/Index/c-index-getCursor-pp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Index/c-index-getCursor-pp.c b/test/Index/c-index-getCursor-pp.c index df61ec0329..0a10450af5 100644 --- a/test/Index/c-index-getCursor-pp.c +++ b/test/Index/c-index-getCursor-pp.c @@ -13,6 +13,8 @@ void OBSCURE(func)(int x) { B(int x); +const char *fname = __FILE__; + // 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 -I%S/Inputs %s | FileCheck -check-prefix=CHECK-2 %s @@ -27,6 +29,8 @@ B(int x); // CHECK-6: inclusion directive=a.h // RUN: c-index-test -cursor-at=%s:14:1 -I%S/Inputs %s | FileCheck -check-prefix=CHECK-7 %s // CHECK-7: macro expansion=B:12:9 +// RUN: c-index-test -cursor-at=%s:16:25 -I%S/Inputs %s | FileCheck -check-prefix=CHECK-8 %s +// CHECK-8: macro expansion=__FILE__ // Same tests, but with "editing" optimizations // RUN: env CINDEXTEST_EDITING=1 c-index-test -cursor-at=%s:1:11 -I%S/Inputs %s | FileCheck -check-prefix=CHECK-1 %s |