blob: c7e4a36312c1fa0ee8dce12870a66f7916e7301d [file] [log] [blame]
// RUN: %swift -typecheck %s -verify -D FOO -D BAR -target arm-apple-watchos2.0 -D FOO -parse-stdlib
// RUN: %swift-ide-test -test-input-complete -source-filename=%s -target arm-apple-watchos2.0
#if os(iOS)
// This block should not parse.
// os(tvOS) or os(watchOS) does not imply os(iOS).
let i: Int = "Hello"
#endif
#if arch(arm) && os(watchOS) && _runtime(_ObjC) && _endian(little)
class C {}
var x = C()
#endif
var y = x