[cfe-commits] r151669 - /cfe/trunk/test/Index/index-decls.m

Argyrios Kyrtzidis akyrtzi at gmail.com
Tue Feb 28 15:39:25 PST 2012


Author: akirtzidis
Date: Tue Feb 28 17:39:24 2012
New Revision: 151669

URL: http://llvm.org/viewvc/llvm-project?rev=151669&view=rev
Log:
[libclang] Add a test I forgot to commit.

Added:
    cfe/trunk/test/Index/index-decls.m

Added: cfe/trunk/test/Index/index-decls.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/index-decls.m?rev=151669&view=auto
==============================================================================
--- cfe/trunk/test/Index/index-decls.m (added)
+++ cfe/trunk/test/Index/index-decls.m Tue Feb 28 17:39:24 2012
@@ -0,0 +1,24 @@
+ at interface I
+ at property (readonly) id prop;
+ -(id)prop;
+ at end
+
+ at interface I()
+ at property (assign,readwrite) id prop;
+ at end
+
+ at implementation I
+ at synthesize prop = _prop;
+ at end
+
+// RUN: c-index-test -index-file %s | FileCheck %s
+// CHECK: [indexDeclaration]: kind: objc-class | name: I | {{.*}} | loc: 1:12
+// CHECK: [indexDeclaration]: kind: objc-instance-method | name: prop | {{.*}} | loc: 3:2
+// CHECK: [indexDeclaration]: kind: objc-property | name: prop | {{.*}} | loc: 2:25
+// CHECK: [indexDeclaration]: kind: objc-category | name:  | {{.*}} | loc: 6:12
+// CHECK: [indexDeclaration]: kind: objc-instance-method | name: setProp: | {{.*}} | loc: 7:33
+// CHECK: [indexDeclaration]: kind: objc-property | name: prop | {{.*}} | loc: 7:33
+
+// CHECK: [indexDeclaration]: kind: objc-ivar | name: _prop | {{.*}} | loc: 11:20
+// CHECK: [indexDeclaration]: kind: objc-instance-method | name: prop | {{.*}} | loc: 11:13 | {{.*}} | lexical-container: [I:10:17]
+// CHECK: [indexDeclaration]: kind: objc-instance-method | name: setProp: | {{.*}} | loc: 11:13 | {{.*}} | lexical-container: [I:10:17]





More information about the cfe-commits mailing list