mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
A parse-only option is needed for parse performance tracking and the current option also includes semantic analysis.
17 lines
412 B
Swift
17 lines
412 B
Swift
// RUN: %swift -typecheck %s -verify -target x86_64-scei-ps4 -disable-objc-interop -parse-stdlib
|
|
// RUN: %swift-ide-test -test-input-complete -source-filename %s -target x86_64-scei-ps4
|
|
|
|
#if os(FreeBSD)
|
|
// This block should not parse.
|
|
// os(FreeBSD) does not imply os(PS4)
|
|
let i: Int = "Hello"
|
|
#endif
|
|
|
|
#if arch(x86_64) && os(PS4) && _runtime(_Native) && _endian(little)
|
|
class C {}
|
|
var x = C()
|
|
#endif
|
|
|
|
var y = x
|
|
|