Files
swift-mirror/test/Interop/Cxx/class/inheritance/Inputs/functions-objc.h
Akira Hatanaka 5bd7a27e96 [cxx-interop] Do not over-release objects returned by synthesized C++ methods (#76139)
Call Sema::BuildReturnStmt instead of ReturnStmt::Create so that an
implicit cast of kind ARCProduceObject is inserted in the AST.

rdar://133731973
2024-08-29 20:45:16 -07:00

13 lines
206 B
Objective-C

#import <Foundation/Foundation.h>
@interface C : NSObject
@end
struct Base {
C *_Nonnull non_virtual_method() const;
virtual C *_Nonnull virtual_method() const;
int a;
};
struct Derived : Base {};