Files
swift-mirror/test/Interop/Cxx/foreign-reference/Inputs/reference-counted-objc-property.h
Akira Hatanaka 335cec0e8d [cxx-interop][IRGen] Do not pass a foreign reference type to objc_retainAutoreleasedReturnValue (#73630)
If a foreign reference type has a custom retain function, emit a call to
it instead of emitting a call to objc_retainAutoreleasedReturnValue.

rdar://117353222
2024-05-17 09:04:02 -07:00

16 lines
325 B
Objective-C

#ifndef REFERENCE_COUNTED_OBJC_PROPERTY_H
#define REFERENCE_COUNTED_OBJC_PROPERTY_H
#include "reference-counted.h"
SWIFT_BEGIN_NULLABILITY_ANNOTATIONS
@interface C0
@property (nonnull, readonly) NS::LocalCount *lc;
- (instancetype)init;
@end
SWIFT_END_NULLABILITY_ANNOTATIONS
#endif // REFERENCE_COUNTED_OBJC_PROPERTY_H