summaryrefslogtreecommitdiffstats
path: root/test/CodeGenObjC/property-category-impl.m
blob: 80a18cb1daab3ea965f4ff98a24164435e3fec37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// RUN: %clang_cc1 -triple x86_64-apple-darwin10  -fobjc-nonfragile-abi -emit-llvm -o - %s | FileCheck %s

// rdar : // 8093297

@interface Foo @end

@protocol Proto
@property (readonly) int proto_property;
@end

@interface Foo (Category) <Proto> @end

@implementation Foo (Category)
-(int)proto_property { return 0; }
@end


// CHECK: l_OBJC_$_PROP_LIST_Foo_$_Category" = internal global
// CHECK: l_OBJC_$_CATEGORY_Foo_$_Category" = internal global
// CHECK: l_OBJC_$_PROP_LIST_Foo_$_Category
OpenPOWER on IntegriCloud