summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/annotate-tokens-pp.c
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-09-08 17:18:41 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-09-08 17:18:41 +0000
commit80f78b961a2096ea4b2d3395abb3ff7259c1e612 (patch)
tree8973edb4a3d2896efb4138d442f4ddf108f1d2cb /clang/test/Index/annotate-tokens-pp.c
parent8b7d403684c89f3ef7fdf5c33f46d55918e0f85b (diff)
downloadbcm5719-llvm-80f78b961a2096ea4b2d3395abb3ff7259c1e612.tar.gz
bcm5719-llvm-80f78b961a2096ea4b2d3395abb3ff7259c1e612.zip
[libclang] Fix annotation and getting a "macro expansion" cursor
for a builtin macro expansion. llvm-svn: 139298
Diffstat (limited to 'clang/test/Index/annotate-tokens-pp.c')
-rw-r--r--clang/test/Index/annotate-tokens-pp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/test/Index/annotate-tokens-pp.c b/clang/test/Index/annotate-tokens-pp.c
index a8ef8a7bdcc..1d0657894eb 100644
--- a/clang/test/Index/annotate-tokens-pp.c
+++ b/clang/test/Index/annotate-tokens-pp.c
@@ -28,7 +28,9 @@ void test() {
#include "pragma-once.h"
#include "guarded.h"
-// RUN: c-index-test -test-annotate-tokens=%s:2:1:30:1 -I%S/Inputs %s | FileCheck %s
+const char *fname = __FILE__;
+
+// RUN: c-index-test -test-annotate-tokens=%s:2:1:32:1 -I%S/Inputs %s | FileCheck %s
// CHECK: Punctuation: "#" [2:1 - 2:2] preprocessing directive=
// CHECK: Identifier: "define" [2:2 - 2:8] preprocessing directive=
// CHECK: Identifier: "STILL_NOTHING" [2:9 - 2:22] macro definition=STILL_NOTHING
@@ -189,3 +191,4 @@ void test() {
// CHECK: Punctuation: "}" [26:1 - 26:2] UnexposedStmt=
// CHECK: {{28:1.*inclusion directive=pragma-once.h.*multi-include guarded}}
// CHECK: {{29:1.*inclusion directive=guarded.h.*multi-include guarded}}
+// CHECK: Identifier: "__FILE__" [31:21 - 31:29] macro expansion=__FILE__
OpenPOWER on IntegriCloud