Files
swift-mirror/test/Parse/ConditionalCompilation/wasm32ThreadsTarget.swift
Yuta Saito 7441e039d0 wasm: Add "_multithreaded" as valid _runtime argument
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.
2024-03-29 06:30:18 +00:00

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