// RUN: %target-run-simple-swift( -target %target-swift-5.1-abi-triple -parse-as-library) | %FileCheck %s // TODO: move to target-run-simple-leaks-swift once CI is using at least Xcode 14.3 // Task group addTask is not supported in freestanding mode // UNSUPPORTED: freestanding // REQUIRES: executable_test // REQUIRES: concurrency // REQUIRES: concurrency_runtime // UNSUPPORTED: back_deployment_runtime final class Something { let int: Int init(int: Int) { self.int = int } deinit { print("deinit, Something, int: \(self.int)") } } func test_taskGroup_next() async { let tasks = 5 _ = await withTaskGroup(of: Something.self, returning: Int.self) { group in for n in 0..