mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This test is only relevant for the AVR target, so it should be guarded with the CODEGENERATOR=AVR condition to avoid running it when the target is not enabled in llvm-targets-to-build.
13 lines
334 B
Swift
13 lines
334 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
|
|
|
|
import Swift
|
|
|
|
#if arch(avr) && os(none) && _runtime(_Native) && _endian(little) && _pointerBitWidth(_16)
|
|
let i: Int = 1
|
|
#endif
|
|
|
|
var j = i
|