brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 5a2c820 Raw
23 lines · plain
1// RUN: %clang_cc1 -ast-print %s -o - | FileCheck %s2 3@interface NSObject4@end5 6@interface Properties : NSObject7@property(class) int classFoo;8@property(nonatomic) int atomicBar;9@property(readonly) int readonlyConstant;10@property(retain, nonatomic, setter=my_setter:, getter=my_getter) id                   __crazy_name;11@property(nonatomic, strong, nullable) NSObject *                   objProperty;12@property(nonatomic, weak, null_resettable) NSObject *   weakObj;13@property(nonatomic, copy, nonnull) NSObject * copyObj;14@end15 16// CHECK: @property(class, atomic, assign, unsafe_unretained, readwrite) int classFoo;17// CHECK: @property(nonatomic, assign, unsafe_unretained, readwrite) int atomicBar;18// CHECK: @property(atomic, readonly) int readonlyConstant;19// CHECK: @property(nonatomic, retain, readwrite, getter = my_getter, setter = my_setter:) id __crazy_name;20// CHECK: @property(nonatomic, strong, readwrite, nullable) NSObject *objProperty;21// CHECK: @property(nonatomic, weak, readwrite, null_resettable) NSObject *weakObj;22// CHECK: @property(nonatomic, copy, readwrite, nonnull) NSObject *copyObj;23