Skip to content

Commit 51a36a6

Browse files
committed
Move test/IRGen/async/throwing.swift to async-main
This patch migrates this test off of using runAsyncAndBlock so that we can eventually delete that function.
1 parent b15f77d commit 51a36a6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

test/IRGen/async/throwing.swift

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %empty-directory(%t)
2-
// RUN: %target-build-swift -Xfrontend -enable-experimental-concurrency -g %s -module-name main -o %t/main
2+
// RUN: %target-build-swift -parse-as-library -Xfrontend -enable-experimental-concurrency -g %s -module-name main -o %t/main
33
// RUN: %target-codesign %t/main
44
// RUN: %target-run %t/main | %FileCheck %s
55

@@ -160,7 +160,9 @@ func testMixture() async {
160160
await test { try await testSyncDoesntThrowThenAsyncDoesntThrow() }
161161
}
162162

163-
runAsyncAndBlock {
164-
await testRecursion()
165-
await testMixture()
163+
@main struct Main {
164+
static func main() async {
165+
await testRecursion()
166+
await testMixture()
167+
}
166168
}

0 commit comments

Comments
 (0)