File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
// Ensure that IRGen don't emit unreachable after coro.end.async for targets that don't support musttail call.
2
- // RUN: %target- swift-frontend -disable-legacy-type-info -parse-stdlib %s -disable-llvm-optzns -disable-swift-specific-llvm-optzns -disable-objc-interop - module-name main -emit-ir -o - | %FileCheck %s
2
+ // RUN: %swift -target wasm32-unknown-none -parse-stdlib %s -module-name main -emit-irgen -o - | %FileCheck %s
3
3
4
- // REQUIRES: concurrency
5
- // REQUIRES: OS=wasi
4
+ // REQUIRES: concurrency, CODEGENERATOR=WebAssembly
6
5
7
6
sil_stage canonical
8
7
@@ -12,7 +11,7 @@ sil @test_simple : $@async () -> () {
12
11
bb0:
13
12
%0 = tuple ()
14
13
return %0 : $()
15
- // CHECK: call i1 (i8* , i1, ...) @llvm.coro.end.async
14
+ // CHECK: call i1 (ptr , i1, ...) @llvm.coro.end.async
16
15
// CHECK-NOT: unreachable
17
16
// CHECK: ret void
18
17
}
You can’t perform that action at this time.
0 commit comments