summaryrefslogtreecommitdiffstats
path: root/test/Index/blocks.c
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-09-12 22:17:26 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-09-12 22:17:26 +0000
commitc2954616fbd11f5a6117236f58420029b773a639 (patch)
tree7ed43057b8e0cb9254c19579c7f781c0f198cbb3 /test/Index/blocks.c
parent544055fa4663298bd2361e9cdfc684934d81e42f (diff)
[libclang] For getDeclFromExpr in CIndex.cpp, associate the decl of
a DeclRefExpr, MemberExpr, etc. with a CastExpr if it is ImplicitCast, since the implicit cast is the one that is invisible in source code. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139547 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Index/blocks.c')
-rw-r--r--test/Index/blocks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Index/blocks.c b/test/Index/blocks.c
index a68cfebf49..6c97802723 100644
--- a/test/Index/blocks.c
+++ b/test/Index/blocks.c
@@ -24,7 +24,7 @@ void test() {
// CHECK: blocks.c:9:28: UnexposedStmt= Extent=[9:28 - 9:58]
// CHECK: blocks.c:9:30: UnexposedStmt= Extent=[9:30 - 9:55]
// CHECK: blocks.c:9:37: UnexposedExpr= Extent=[9:37 - 9:55]
-// CHECK: blocks.c:9:37: UnexposedExpr=x:4:19 Extent=[9:37 - 9:51]
+// CHECK: blocks.c:9:37: UnexposedExpr= Extent=[9:37 - 9:51]
// CHECK: blocks.c:9:38: TypeRef=int_t:3:13 Extent=[9:38 - 9:43]
// CHECK: blocks.c:9:50: MemberRefExpr=x:4:19 SingleRefName=[9:50 - 9:51] RefName=[9:50 - 9:51] Extent=[9:45 - 9:51]
// CHECK: blocks.c:9:45: DeclRefExpr=foo:9:23 Extent=[9:45 - 9:48]