aboutsummaryrefslogtreecommitdiff
path: root/test/Index/c-index-api-loadTU-test.m
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2011-09-29 07:02:25 +0000
committerTed Kremenek <kremenek@apple.com>2011-09-29 07:02:25 +0000
commit2f041d0b12aa87f3345e5fb2e38fefba30c5bff3 (patch)
tree2e3410c729561d70f52df47e4febab33b43175f4 /test/Index/c-index-api-loadTU-test.m
parent4cd5791f4aa6deb572979bb38c1deedbc155efe0 (diff)
Like IBOutletCollection, it only makes sense to apply the IBOutlet annotation to Objective-C object types. Fixes <rdar://problem/10142685>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140778 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Index/c-index-api-loadTU-test.m')
-rw-r--r--test/Index/c-index-api-loadTU-test.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Index/c-index-api-loadTU-test.m b/test/Index/c-index-api-loadTU-test.m
index 2f74455a2b..1bca7058c8 100644
--- a/test/Index/c-index-api-loadTU-test.m
+++ b/test/Index/c-index-api-loadTU-test.m
@@ -60,7 +60,7 @@ int main (int argc, const char * argv[]) {
#define IBAction void)__attribute__((ibaction)
@interface TestAttributes {
- IBOutlet char * anOutlet;
+ IBOutlet id anOutlet;
IBOutletCollection(id) id anOutletCollection;
}
- (IBAction) actionMethod:(id)arg;
@@ -140,7 +140,7 @@ struct X0 {};
// CHECK: c-index-api-loadTU-test.m:54:18: UnexposedExpr= Extent=[54:18 - 54:36]
// CHECK: c-index-api-loadTU-test.m:54:33: DeclRefExpr=bee:47:8 Extent=[54:33 - 54:36]
// CHECK: c-index-api-loadTU-test.m:62:12: ObjCInterfaceDecl=TestAttributes:62:12 Extent=[62:1 - 67:5]
-// CHECK: c-index-api-loadTU-test.m:63:19: ObjCIvarDecl=anOutlet:63:19 (Definition) Extent=[58:18 - 63:27]
+// CHECK: c-index-api-loadTU-test.m:63:15: ObjCIvarDecl=anOutlet:63:15 (Definition) Extent=[58:18 - 63:23]
// CHECK: <invalid loc>:0:0: attribute(iboutlet)=
// CHECK: c-index-api-loadTU-test.m:64:29: ObjCIvarDecl=anOutletCollection:64:29 (Definition) Extent=[59:39 - 64:47]
// CHECK: <invalid loc>:0:0: attribute(iboutletcollection)= [IBOutletCollection=ObjCObjectPointer]