Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenObjC / direct-properties.m
blob113ac12f18bfe48bf567782c55d985880e0a429d
1 // RUN: %clang_cc1 -emit-llvm -fobjc-arc -triple x86_64-apple-darwin10 %s -o - | FileCheck %s
3 __attribute__((objc_root_class))
4 @interface A
5 @property(direct, readonly) int i;
6 @end
8 __attribute__((objc_root_class))
9 @interface B
10 @property(direct, readonly) int i;
11 @property(readonly) int j;
12 @end
14 // CHECK-NOT: @"__OBJC_$_PROP_LIST_A"
15 @implementation A
16 @synthesize i = _i;
17 @end
19 // CHECK: @"_OBJC_$_PROP_LIST_B" = internal global { i32, i32, [1 x %struct._prop_t] } { i32 16, i32 1
20 @implementation B
21 @synthesize i = _i;
22 @synthesize j = _j;
23 @end