You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
+ (struct CxxRefType *)objCMethodReturningFRTUnannotated;// expected-warning {{'objCMethodReturningFRTUnannotated' should be annotated with either SWIFT_RETURNS_RETAINED or SWIFT_RETURNS_UNRETAINED as it is returning a SWIFT_SHARED_REFERENCE}}
+ (struct CxxRefType *)objCMethodReturningFRTBothAnnotations// expected-error {{'objCMethodReturningFRTBothAnnotations' cannot be annotated with both SWIFT_RETURNS_RETAINED and SWIFT_RETURNS_UNRETAINED}}
25
+
__attribute__((swift_attr("returns_unretained")))
26
+
__attribute__((swift_attr("returns_retained")));
27
+
+ (struct CxxValType *)objCMethodReturningNonCxxFrtAnannotated// expected-error {{'objCMethodReturningNonCxxFrtAnannotated' cannot be annotated with either SWIFT_RETURNS_RETAINED or SWIFT_RETURNS_UNRETAINED because it is not returning a SWIFT_SHARED_REFERENCE type}}
0 commit comments