Files
clang-p2996/clang/test/CodeGenObjC/property-category-impl.m
Fariborz Jahanian 7966aff294 Fixes a problem in generation of meta-data for
category implementation whereby property list was missing.
NeXt ObjC runtime (radar 8093297).

llvm-svn: 106550
2010-06-22 16:33:55 +00:00

21 lines
495 B
Objective-C

// 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