Files
swift-mirror/test/Parse/ConditionalCompilation/wasm32EmscriptenTarget.swift
T
Max Desiatov e37274c5c8 lib/Basic: Emscripten triple support in swift-frontend (#88732)
- **Explanation**:  Adding support for `swift-frontend -print-target-info -target wasm32-unknown-emscripten`, which is required before this triple is supported in `swiftc`.
- **Scope**: Limited to Emscripten Wasm support.
- **Issues**: rdar://175887675
- **Risk**: Very low due to limited scope.
- **Testing**: Added a new case to the lit test suite.
2026-04-30 10:23:59 +01:00

11 lines
462 B
Swift

// RUN: %swift -typecheck %s -verify -target wasm32-unknown-emscripten -disable-objc-interop -parse-stdlib
// RUN: %swift-ide-test -test-input-complete -source-filename %s -target wasm32-unknown-emscripten
#if arch(wasm32) && os(Emscripten) && _runtime(_Native) && _endian(little) && _pointerBitWidth(_32)
#if _hasAtomicBitWidth(_8) && _hasAtomicBitWidth(_16) && _hasAtomicBitWidth(_32) && _hasAtomicBitWidth(_64)
class C {}
var x = C()
#endif
#endif
var y = x