Skip to content

Commit c0b9f40

Browse files
committed
[transfer-nonsendable] Rename tests from sendnonsendable_* -> transfernonsendable_*
I also renamed sendnonsendable_basic.sil -> transfernonsendable_instruction_matching.sil since that is what the test is intended to be used for... mechanical instruction level modeling tests rather than more complex crashers.
1 parent 1f9b074 commit c0b9f40

6 files changed

+10
-1
lines changed

test/Concurrency/sendnonsendable_basic.sil renamed to test/Concurrency/transfernonsendable_instruction_matching.sil

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
// RUN: %target-sil-opt -transfer-non-sendable -enable-experimental-feature RegionBasedIsolation -strict-concurrency=complete %s -verify
22

3+
// PLEASE READ THIS!
4+
//
5+
// This test is specifically to test out individual instruction interactions,
6+
// not for crashers. The idea is to make it so that we have one test for every
7+
// SIL instruction, so please add a test here when you add a new instruction.
8+
//
9+
// For assign/lookthrough, just add a test that triggers an ownership error. If it is
10+
// a more complex instruction, talk with @gottesmm.
11+
312
sil_stage raw
413

514
import Swift
@@ -288,4 +297,4 @@ bb0(%0 : $*NonSendableStruct):
288297
// expected-warning @-1 {{call site passes `self` or a non-sendable argument of this function to another thread, potentially yielding a race with the caller}}
289298
%9999 = tuple ()
290299
return %9999 : $()
291-
}
300+
}

0 commit comments

Comments
 (0)