Files
swift-mirror/test/embedded/avr/testStdlibFunctioning.swift
Yuta Saito c120c5a8e1 [test] Guard AVR test with CODEGENERATOR=AVR
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.
2024-07-18 15:44:48 +00:00

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