mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Implements SE-0229. Also updates simd module types in the Apple SDKs to use the new types, and updates a couple tests to work with the new types and protocols.
15 lines
294 B
Swift
15 lines
294 B
Swift
// RUN: %target-repl-run-simple-swift | %FileCheck %s
|
|
|
|
// REQUIRES: swift_repl
|
|
|
|
// This used to crash.
|
|
|
|
let str = ""
|
|
import Foundation
|
|
let pt = CGPoint(x: 1.0, y: 2.0)
|
|
// CHECK: pt : CGPoint = (1.0, 2.0)
|
|
|
|
import simd
|
|
let f = float2(x: 1.0, y: 2.0)
|
|
// CHECK: f : float2 = SIMD2<Float>(1.0, 2.0)
|