mirror of
https://github.com/apple/swift.git
synced 2026-06-20 15:42:51 +02:00
e37274c5c8
- **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.
11 lines
462 B
Swift
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
|