Files
swift-mirror/test/Parse/ConditionalCompilation/x86_64PS4Target.swift
Dario Rexin 294342a1d3 Add _pointerBitWidth platform condition (#41534)
* Add _pointerBitWidth platform condition

* Fixes after rebasing

---------

Co-authored-by: Xiaodi Wu <xiaodi.wu@gmail.com>
2023-03-21 20:59:32 -07:00

17 lines
437 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) && _pointerBitWidth(_64)
class C {}
var x = C()
#endif
var y = x