mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This patch adds "_multithreaded" as a valid `_runtime` argument and sets it when the target is `wasm32-unknown-wasi-threads` or other non-none OS targets.
9 lines
316 B
Swift
9 lines
316 B
Swift
// RUN: %swift -typecheck %s -verify -target wasm32-unknown-wasip1-threads -parse-stdlib
|
|
// RUN: %swift-ide-test -test-input-complete -source-filename=%s -target wasm32-unknown-wasip1-threads
|
|
|
|
#if _runtime(_multithreaded)
|
|
func underThreads() {
|
|
foo() // expected-error {{cannot find 'foo' in scope}}
|
|
}
|
|
#endif
|