Files
swift-mirror/test/BuildConfigurations/i386WatchOSTarget.swift
David Farler 1d9b0af93b os(iOS) shouldn't imply os(tvOS)
rdar://problem/20213434

Swift SVN r26285
2015-03-18 23:22:27 +00:00

15 lines
407 B
Swift

// RUN: %swift -parse %s -verify -D FOO -D BAR -target i386-apple-watchos2.0 -D FOO -parse-stdlib
// RUN: %swift-ide-test -test-input-complete -source-filename=%s -target i386-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(i386) && os(watchOS) && _runtime(_ObjC)
class C {}
var x = C()
#endif
var y = x