Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenObjC / property-category-impl.m
blob18216d688d90bd1095fbfdedc08c2329e64c4470
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10  -emit-llvm -o - %s | FileCheck %s
3 @interface Foo @end
5 @protocol Proto
6 @property (readonly) int proto_property;
7 @end
9 @interface Foo (Category) <Proto> @end
11 @implementation Foo (Category)
12 -(int)proto_property { return 0; }
13 @end
16 // CHECK: _OBJC_$_PROP_LIST_Foo_$_Category" = internal global
17 // CHECK: _OBJC_$_CATEGORY_Foo_$_Category" = internal global
18 // CHECK: _OBJC_$_PROP_LIST_Foo_$_Category