Skip to content

Commit e1934c9

Browse files
Merge pull request #71754 from kateinoigakukun/pr-e2b725c98aa1ec0fb01b5e6da0ee4fcc3d327c44
[wasm] Repair IRGen/async.swift test
2 parents 1c6f885 + a5493e4 commit e1934c9

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

test/IRGen/async.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// RUN: %target-swift-frontend -primary-file %s -emit-ir -disable-availability-checking -enable-library-evolution
33

44
// REQUIRES: concurrency
5+
// UNSUPPORTED: CPU=wasm32
56

67
// CHECK: "$s5async1fyyYaF"
78
public func f() async { }

test/IRGen/async_wasm.swift

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// RUN: %target-swift-frontend -primary-file %S/async.swift -emit-ir -disable-availability-checking | %FileCheck %s --check-prefix=NOTAIL
2+
// TODO(katei): %target-swift-frontend -primary-file %S/async.swift -emit-ir -disable-availability-checking -Xcc -mtail-call | %FileCheck %s --check-prefix=TAIL
3+
4+
// REQUIRES: concurrency && CPU=wasm32
5+
6+
// NOTAIL: "$s5async1fyyYaF"
7+
// NOTAIL: "$s5async1gyyYaKF"
8+
// NOTAIL: "$s5async1hyyS2iYbXEF"
9+
10+
// NOTAIL: define{{.*}} swiftcc void @"$s5async8testThisyyAA9SomeClassCnYaF"(ptr swiftasync %0{{.*}}
11+
// NOTAIL-NOT: @swift_task_alloc
12+
// NOTAIL-NOT: musttail call
13+
// NOTAIL: call swiftcc void @swift_task_future_wait_throwing(ptr {{.*}}, ptr {{.*}}, ptr {{.*}}, ptr {{.*}}, ptr {{.*}})

0 commit comments

Comments
 (0)