File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %target-swift-frontend -enable-experimental-feature Embedded -parse-as-library %s -c -o %t/a.o
3
- // RUN: %target-clang %t/a.o -o %t/a.out -L%swift_obj_root/lib/swift/embedded/%target-cpu-apple-macos -lswift_Concurrency -lswift_ConcurrencyDefaultExecutor -dead_strip
3
+ // RUN: %target-clang %t/a.o -o %t/a.out -L%swift_obj_root/lib/swift/embedded/%module- target-triple %target-clang-resource-dir-opt -lswift_Concurrency %target-swift-default-executor-opt -dead_strip
4
4
// RUN: %target-run %t/a.out | %FileCheck %s
5
5
6
6
// REQUIRES: executable_test
7
7
// REQUIRES: swift_in_compiler
8
8
// REQUIRES: optimized_stdlib
9
- // REQUIRES: OS=macosx
9
+ // REQUIRES: OS=macosx || OS=wasip1
10
10
// REQUIRES: swift_feature_Embedded
11
11
12
12
import _Concurrency
@@ -64,7 +64,7 @@ actor Number {
64
64
let n1 = await Number ( )
65
65
await n1. task!. value
66
66
67
- let n2 = await Number ( iterations: 1000 )
67
+ let n2 = await Number ( iterations: 500 )
68
68
let val = await n2. val
69
69
guard val == 1 else {
70
70
fatalError ( " wrong val setting " )
Original file line number Diff line number Diff line change 2
2
3
3
// REQUIRES: swift_in_compiler
4
4
// REQUIRES: optimized_stdlib
5
- // REQUIRES: OS=macosx
5
+ // REQUIRES: OS=macosx || OS=wasip1
6
6
// REQUIRES: swift_feature_Embedded
7
7
8
8
import Builtin
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %target-swift-frontend -enable-experimental-feature Embedded -parse-as-library %s -c -o %t/a.o
3
- // RUN: %target-clang %t/a.o -o %t/a.out -L%swift_obj_root/lib/swift/embedded/%target-cpu-apple-macos -lswift_Concurrency -lswift_ConcurrencyDefaultExecutor -dead_strip
3
+ // RUN: %target-clang %t/a.o -o %t/a.out -L%swift_obj_root/lib/swift/embedded/%module- target-triple %target-clang-resource-dir-opt -lswift_Concurrency %target-swift-default-executor-opt -dead_strip
4
4
// RUN: %target-run %t/a.out | %FileCheck %s
5
5
6
6
// REQUIRES: executable_test
7
7
// REQUIRES: swift_in_compiler
8
8
// REQUIRES: optimized_stdlib
9
- // REQUIRES: OS=macosx
9
+ // REQUIRES: OS=macosx || OS=wasip1
10
10
// REQUIRES: swift_feature_Embedded
11
11
12
12
import _Concurrency
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %target-swift-frontend -enable-experimental-feature Embedded -parse-as-library %s -c -o %t/a.o -g -O
3
3
// RUN: %target-clang -x c -std=c11 -c %S/Inputs/debug-malloc.c -o %t/debug-malloc.o -g
4
- // RUN: %target-clang %t/a.o %t/debug-malloc.o -o %t/a.out -L%swift_obj_root/lib/swift/embedded/%target-cpu-apple-macos - lswift_Concurrency -lswift_ConcurrencyDefaultExecutor -dead_strip -g
4
+ // RUN: %target-clang %t/a.o %t/debug-malloc.o -o %t/a.out -L%swift_obj_root/lib/swift/embedded/%module- target-triple %target-clang-resource-dir-opt %target-swift-default-executor-opt - lswift_Concurrency %target-swift-default-executor-opt -dead_strip -g
5
5
// RUN: %target-run %t/a.out | %FileCheck %s
6
6
7
7
// REQUIRES: executable_test
8
8
// REQUIRES: swift_in_compiler
9
9
// REQUIRES: optimized_stdlib
10
- // REQUIRES: OS=macosx
10
+ // REQUIRES: OS=macosx || OS=wasip1
11
11
// REQUIRES: swift_feature_Embedded
12
12
13
13
import _Concurrency
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %target-swift-frontend -enable-experimental-feature Embedded -parse-as-library %s -c -o %t/a.o
3
- // RUN: %target-clang %target-clang-resource-dir-opt %t/a.o -o %t/a.out -L%swift_obj_root/lib/swift/embedded/%module-target-triple -lc++ -lswift_Concurrency -lswift_ConcurrencyDefaultExecutor -dead_strip
3
+ // RUN: %target-clang %target-clang-resource-dir-opt %t/a.o -o %t/a.out -L%swift_obj_root/lib/swift/embedded/%module-target-triple -lc++ -lswift_Concurrency %target-swift-default-executor-opt -dead_strip
4
4
// RUN: %target-run %t/a.out | %FileCheck %s
5
5
6
6
// REQUIRES: executable_test
7
7
// REQUIRES: swift_in_compiler
8
8
// REQUIRES: optimized_stdlib
9
- // REQUIRES: OS=macosx
9
+ // REQUIRES: OS=macosx || OS=wasip1
10
10
// REQUIRES: swift_feature_Embedded
11
11
12
12
import _Concurrency
You can’t perform that action at this time.
0 commit comments