mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Also removed the sdk 'feature' in favour of the more specific objc_interop. Swift SVN r24856
15 lines
426 B
Swift
15 lines
426 B
Swift
// RUN: %target-run-simple-swift | FileCheck %s
|
|
|
|
// REQUIRES: objc_interop
|
|
|
|
import Foundation
|
|
import MapKit
|
|
|
|
let rect = MKMapRectMake(1.0, 2.0, 3.0, 4.0)
|
|
// CHECK: {{^}}1.0 2.0 3.0 4.0{{$}}
|
|
println("\(rect.origin.x) \(rect.origin.y) \(rect.size.width) \(rect.size.height)")
|
|
|
|
let value: CUnsignedInt = 0xFF00FF00
|
|
// CHECK: {{^}}ff00ff00 ff00ff{{$}}
|
|
println("\(String(value, radix: 16)) \(String(NSSwapInt(value), radix: 16))")
|