Skip to content

Commit 922a01d

Browse files
authored
Merge pull request #80149 from glessard/rdar99047401-sendability-test
[test] sendability of POSIXErrorCode
2 parents ddd36a7 + 03d9d04 commit 922a01d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

validation-test/stdlib/POSIXErrorCode.swift

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-run-simple-swift
1+
// RUN: %target-run-simple-swift -strict-concurrency=complete
22
// REQUIRES: executable_test
33
// REQUIRES: VENDOR=apple || OS=linux-androideabi || OS=linux-android || OS=linux-gnu || OS=openbsd || OS=freebsd
44
// UNSUPPORTED: freestanding
@@ -18,6 +18,10 @@ import StdlibUnittest
1818

1919
var POSIXErrorCodeTestSuite = TestSuite("POSIXErrorCode")
2020

21+
// Ensure that POSIXErrorCode is actually Sendable
22+
func send(_ value: some Sendable) {}
23+
send(POSIXErrorCode.EPERM)
24+
2125
#if canImport(Darwin)
2226

2327
POSIXErrorCodeTestSuite.test("Darwin POSIX error codes constants") {

0 commit comments

Comments
 (0)