Pierre Habouzit | 52311d0 | 2020-01-22 12:08:19 -0800 | [diff] [blame] | 1 | // RUN: %clang_cc1 -emit-llvm -fobjc-arc -triple x86_64-apple-darwin10 %s -o - | FileCheck %s |
| 2 | |
| 3 | __attribute__((objc_root_class)) |
| 4 | @interface A |
| 5 | @property(direct, readonly) int i; |
| 6 | @end |
| 7 | |
| 8 | __attribute__((objc_root_class)) |
| 9 | @interface B |
| 10 | @property(direct, readonly) int i; |
| 11 | @property(readonly) int j; |
| 12 | @end |
| 13 | |
| 14 | // CHECK-NOT: @"__OBJC_$_PROP_LIST_A" |
| 15 | @implementation A |
| 16 | @synthesize i = _i; |
| 17 | @end |
| 18 | |
| 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 |