Debian Codegraph @

clang/test/CodeGenObjC/property-category-impl.m

raw
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s
2
3 @interface Foo @end
4
5 @protocol Proto
6 @property (readonly) int proto_property;
7 @end
8
9 @interface Foo (Category) <Proto> @end
10
11 @implementation Foo (Category)
12 -(int)proto_property { return 0; }
13 @end
14
15
16 // CHECK: _OBJC_$_PROP_LIST_Foo_$_Category" = internal global
17 // CHECK: _OBJC_$_CATEGORY_Foo_$_Category" = internal global
18 // CHECK: _OBJC_$_PROP_LIST_Foo_$_Category