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
Copy file name to clipboardExpand all lines: test/Interop/Cxx/foreign-reference/frt-retained-unretained-attributes-error.swift
+6
Original file line number
Diff line number
Diff line change
@@ -53,3 +53,9 @@ let w = x - y
53
53
letf=FunctionVoidToFRTStruct()
54
54
letfrt=f()
55
55
// CHECK-NOT: warning: 'operator()' should be annotated with either SWIFT_RETURNS_RETAINED or SWIFT_RETURNS_UNRETAINED as it is returning a SWIFT_SHARED_REFERENCE
56
+
57
+
58
+
let _ =DefaultOwnershipSuppressUnannotatedAPIWarning.returnRefType()
59
+
// CHECK: warning: 'returnRefType' should be annotated with either SWIFT_RETURNS_RETAINED or SWIFT_RETURNS_UNRETAINED as it is returning a SWIFT_SHARED_REFERENCE
60
+
let _ =DefaultOwnershipSuppressUnannotatedAPIWarning.returnRefTypeDefaultRetained()
61
+
// CHECK-NOT: warning: 'returnRefTypeDefaultRetained' should be annotated with either SWIFT_RETURNS_RETAINED or SWIFT_RETURNS_UNRETAINED as it is returning a SWIFT_SHARED_REFERENCE
0 commit comments