Skip to content

Commit 03d9d04

Browse files
committed
[test] Test sendability of POSIXErrorCode
1 parent fc03688 commit 03d9d04

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)