Files
swift-mirror/test/Parse/ConditionalCompilation/armAndroidTarget.swift
Butta 1a28a91db9 [android] Switch armv7 vendor to 'unknown' in target triple to match other arches
Recent changes have made 'none' and 'unknown' not interchangeable anymore, so
standardize on 'unknown' for armv7 too.
2020-12-02 11:05:36 +05:30

15 lines
444 B
Swift

// RUN: %swift -typecheck %s -verify -target armv7-unknown-linux-androideabi -disable-objc-interop -parse-stdlib
// RUN: %swift-ide-test -test-input-complete -source-filename=%s -target armv7-unknown-linux-androideabi
#if os(Linux)
// This block should not parse.
// os(Android) does not imply os(Linux).
let i: Int = "Hello"
#endif
#if arch(arm) && os(Android) && _runtime(_Native) && _endian(little)
class C {}
var x = C()
#endif
var y = x