mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This test should not run as a part of Embedded Swift for Wasm test suite, but somehow it does in this run: https://ci.swift.org/job/oss-swift-pr-test-crosscompile-wasm-ubuntu-20_04/3262/console
15 lines
397 B
Swift
15 lines
397 B
Swift
// RUN: %swift-frontend -typecheck %s -target avr-none-none-elf \
|
|
// RUN: -wmo -enable-experimental-feature Embedded
|
|
// REQUIRES: embedded_stdlib_cross_compiling
|
|
// REQUIRES: CODEGENERATOR=AVR
|
|
// REQUIRES: swift_feature_Embedded
|
|
// UNSUPPORTED: CPU=wasm32
|
|
|
|
import Swift
|
|
|
|
#if arch(avr) && os(none) && _runtime(_Native) && _endian(little) && _pointerBitWidth(_16)
|
|
let i: Int = 1
|
|
#endif
|
|
|
|
var j = i
|