[cfe-commits] r143636 - /cfe/trunk/test/Index/targeted-cursor.c

Argyrios Kyrtzidis akyrtzi at gmail.com
Thu Nov 3 12:01:07 PDT 2011


Author: akirtzidis
Date: Thu Nov  3 14:01:07 2011
New Revision: 143636

URL: http://llvm.org/viewvc/llvm-project?rev=143636&view=rev
Log:
[libclang] Add a test for "targeting" a field inside an #include that only
contains fields.

Modified:
    cfe/trunk/test/Index/targeted-cursor.c

Modified: cfe/trunk/test/Index/targeted-cursor.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/targeted-cursor.c?rev=143636&r1=143635&r2=143636&view=diff
==============================================================================
--- cfe/trunk/test/Index/targeted-cursor.c (original)
+++ cfe/trunk/test/Index/targeted-cursor.c Thu Nov  3 14:01:07 2011
@@ -20,6 +20,11 @@
 // RUN:    -Xclang -error-on-deserialized-decl=TopVar  \
 // RUN:  | FileCheck %s -check-prefix=NESTED-CURSOR1
 
+// RUN: env CINDEXTEST_FAILONERROR=1 c-index-test -cursor-at=%S/targeted-fields.h:2:7 %s -include %t.h \
+// RUN:    -Xclang -error-on-deserialized-decl=NestedVar1  \
+// RUN:    -Xclang -error-on-deserialized-decl=TopVar  \
+// RUN:  | FileCheck %s -check-prefix=FIELD-CURSOR1
+
 // RUN: env CINDEXTEST_FAILONERROR=1 CINDEXTEST_EDITING=1 CINDEXTEST_COMPLETION_NO_CACHING=1 \
 // RUN:   c-index-test -cursor-at=%s:5:10 %s -include %t.h \
 // RUN:    -Xclang -error-on-deserialized-decl=PreambleVar  \
@@ -50,3 +55,4 @@
 // TOP-CURSOR1: VarDecl=TopVar:11:12
 // NESTED-CURSOR1: VarDecl=NestedVar1:2:12
 // PREAMBLE-CURSOR1: VarDecl=PreambleVar:2:12
+// FIELD-CURSOR1: FieldDecl=z:2:7 (Definition)





More information about the cfe-commits mailing list