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
DerivedFromImmortalRefType *returnDerivedFromImmortalRefType() { // expected-note {{annotate 'returnDerivedFromImmortalRefType()' with either SWIFT_RETURNS_RETAINED or SWIFT_RETURNS_UNRETAINED}}
RefType *returnRefType() { returnnewRefType(); };// expected-note {{annotate 'returnRefType()' with either SWIFT_RETURNS_RETAINED or SWIFT_RETURNS_UNRETAINED}}
209
+
RefType *returnRefType() { returnnewRefType(); } // expected-note {{annotate 'returnRefType()' with either SWIFT_RETURNS_RETAINED or SWIFT_RETURNS_UNRETAINED}}
210
210
211
211
structDerivedFromRefTypefinal : RefType {};
212
212
DerivedFromRefType *returnDerivedFromRefType() { // expected-note {{annotate 'returnDerivedFromRefType()' with either SWIFT_RETURNS_RETAINED or SWIFT_RETURNS_UNRETAINED}}
structD : B1, B2, B3 {}; // expected-warning {{unable to infer SWIFT_SHARED_REFERENCE for 'D', although one of its transitive base types is marked as SWIFT_SHARED_REFERENCE}}
structDiamond : B, C {}; // expected-warning {{unable to infer SWIFT_SHARED_REFERENCE for 'Diamond', although one of its transitive base types is marked as SWIFT_SHARED_REFERENCE}}
338
-
Diamond *returnDiamond() { returnnewDiamond(); };
338
+
Diamond *returnDiamond() { returnnewDiamond(); }
339
339
340
340
structBVirtual : virtual A {};
341
341
342
342
structCVirtual : virtual A {};
343
343
344
344
structVirtualDiamond : BVirtual, CVirtual {};
345
-
VirtualDiamond *returnVirtualDiamond() { returnnewVirtualDiamond(); };// expected-note {{annotate 'returnVirtualDiamond()' with either SWIFT_RETURNS_RETAINED or SWIFT_RETURNS_UNRETAINED}}
345
+
VirtualDiamond *returnVirtualDiamond() { returnnewVirtualDiamond(); } // expected-note {{annotate 'returnVirtualDiamond()' with either SWIFT_RETURNS_RETAINED or SWIFT_RETURNS_UNRETAINED}}
346
346
} // namespace RefTypeDiamondInheritance
347
347
348
-
voidretainA(RefTypeDiamondInheritance::A *a) {};
349
-
voidreleaseA(RefTypeDiamondInheritance::A *a) {};
348
+
voidretainA(RefTypeDiamondInheritance::A *a) {}
349
+
voidreleaseA(RefTypeDiamondInheritance::A *a) {}
350
350
351
351
namespaceNonRefTypeDiamondInheritance {
352
352
structA {};
@@ -358,12 +358,12 @@ __attribute__((swift_attr("release:releaseB"))) B : A {};
358
358
structC : A {};
359
359
360
360
structDiamond : B, C {};
361
-
Diamond *returnDiamond() { returnnewDiamond(); };// expected-note {{annotate 'returnDiamond()' with either SWIFT_RETURNS_RETAINED or SWIFT_RETURNS_UNRETAINED}}
361
+
Diamond *returnDiamond() { returnnewDiamond(); } // expected-note {{annotate 'returnDiamond()' with either SWIFT_RETURNS_RETAINED or SWIFT_RETURNS_UNRETAINED}}
Forest *returnForest() { returnnewForest(); };// expected-note {{annotate 'returnForest()' with either SWIFT_RETURNS_RETAINED or SWIFT_RETURNS_UNRETAINED}}
390
+
Forest *returnForest() { returnnewForest(); } // expected-note {{annotate 'returnForest()' with either SWIFT_RETURNS_RETAINED or SWIFT_RETURNS_UNRETAINED}}
0 commit comments