John McCall | d1e40d5 | 2011-10-02 01:16:38 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s |
Fariborz Jahanian | 6afbdf5 | 2010-06-22 16:33:55 +0000 | [diff] [blame] | 2 | |
| 3 | // rdar : // 8093297 |
| 4 | |
| 5 | @interface Foo @end |
| 6 | |
| 7 | @protocol Proto |
| 8 | @property (readonly) int proto_property; |
| 9 | @end |
| 10 | |
| 11 | @interface Foo (Category) <Proto> @end |
| 12 | |
| 13 | @implementation Foo (Category) |
| 14 | -(int)proto_property { return 0; } |
| 15 | @end |
| 16 | |
| 17 | |
| 18 | // CHECK: l_OBJC_$_PROP_LIST_Foo_$_Category" = internal global |
| 19 | // CHECK: l_OBJC_$_CATEGORY_Foo_$_Category" = internal global |
| 20 | // CHECK: l_OBJC_$_PROP_LIST_Foo_$_Category |