File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 11// RUN: %target-run-simple-swift( -Xfrontend -disable-availability-checking -parse-as-library) | %FileCheck %s
22// TODO: move to target-run-simple-leaks-swift once CI is using at least Xcode 14.3
33
4- // This test uses `leaks` which is only available on apple platforms; limit it to macOS:
5- // REQUIRES: OS=macosx
4+ // Task group addTask is not supported in freestanding mode
5+ // UNSUPPORTED: freestanding
66
77// REQUIRES: executable_test
88// REQUIRES: concurrency
99
1010// REQUIRES: concurrency_runtime
1111// UNSUPPORTED: back_deployment_runtime
1212
13- import Darwin
14-
1513final class Something {
1614 let int : Int
1715 init ( int: Int ) {
1816 self . int = int
1917 }
2018
2119 deinit {
22- print ( " deinit, Something, int: \( int) " )
20+ print ( " deinit, Something, int: \( self . int) " )
2321 }
2422}
2523
2624func test_taskGroup_next( ) async {
2725 let tasks = 5
2826 _ = await withTaskGroup ( of: Something . self, returning: Int . self) { group in
2927 for n in 0 ..< tasks {
30- group. spawn {
28+ group. addTask {
3129 Something ( int: n)
3230 }
3331 }
You can’t perform that action at this time.
0 commit comments