Files
swift-mirror/test/Parse/ConditionalCompilation/i386WatchOSTarget.swift
Saleem Abdulrasool 52952623db test: remove extraneous macro definitions
These tests were defining an unused macro for no clear reason.  Remove
them to simplify the tests.
2019-05-07 08:06:02 -07:00

15 lines
409 B
Swift

// RUN: %swift -typecheck %s -verify -target i386-apple-watchos2.0 -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) && _endian(little)
class C {}
var x = C()
#endif
var y = x