blob: 5a2c8207bf92fc61125339cbac5a7c7a281a8482 [file] [log] [blame]
David Goldmanfa8185c2019-04-08 19:52:45 +00001// RUN: %clang_cc1 -ast-print %s -o - | FileCheck %s
2
3@interface NSObject
4@end
5
6@interface Properties : NSObject
7@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@end
15
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;