Files
swift-mirror/test/Parse/ConditionalCompilation/armIOSTarget.swift
Jordan Rose 7954be4d87 [test] Move BuildConfigurations/ to Parse/ConditionalCompilation/.
Also move a Parse test that's really about conditional compilation
directives into the new folder.
2016-02-12 11:10:32 -08:00

15 lines
408 B
Swift

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