We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b15f77d commit 51a36a6Copy full SHA for 51a36a6
test/IRGen/async/throwing.swift
@@ -1,5 +1,5 @@
1
// RUN: %empty-directory(%t)
2
-// RUN: %target-build-swift -Xfrontend -enable-experimental-concurrency -g %s -module-name main -o %t/main
+// RUN: %target-build-swift -parse-as-library -Xfrontend -enable-experimental-concurrency -g %s -module-name main -o %t/main
3
// RUN: %target-codesign %t/main
4
// RUN: %target-run %t/main | %FileCheck %s
5
@@ -160,7 +160,9 @@ func testMixture() async {
160
await test { try await testSyncDoesntThrowThenAsyncDoesntThrow() }
161
}
162
163
-runAsyncAndBlock {
164
- await testRecursion()
165
- await testMixture()
+@main struct Main {
+ static func main() async {
+ await testRecursion()
166
+ await testMixture()
167
+ }
168
0 commit comments