1// 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;
23