Skip to content

Commit 72b38d7

Browse files
committed
Test: skip manual_ownership.swift on simulators / devices
The diagnostic messages are not yet stabilized, so we're getting a differently-worded message for the same fundamental issue, depending on the targeted platform. rdar://164852821
1 parent 3bbd7da commit 72b38d7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/SIL/manual_ownership.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@
44

55
// REQUIRES: swift_feature_ManualOwnership
66

7+
// FIXME(rdar://164852821): Some of the diagnostic message tailoring for assignments
8+
// are unstable when targeting platforms like the simulator, since we seem to emit
9+
// slightly different SIL which then throws off the heuristics. For example,
10+
//
11+
// <snip>/swift/test/SIL/manual_ownership.swift:431:68: error: incorrect message found
12+
// self.baseCollection = baseCollection
13+
// // expected-warning@-1 {{accessing 'baseCollection' may produce a copy}}
14+
// ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15+
// closure capture of 'baseCollection' requires independent copy of it; write [baseCollection = copy baseCollection] in the closure's capture list to acknowledge
16+
//
17+
// UNSUPPORTED: remote_run || device_run
18+
719
// MARK: types
820

921
public class Whatever {

0 commit comments

Comments
 (0)