 // RUN: %S/timeout.sh 360 %target-run %t/a.out %S/Inputs/shuffle.jpg | FileCheck %s
 // FIXME: timeout wrapper is necessary because the ASan test runs for hours
 
-#if os(OSX) || os(iOS)
 import Foundation
 import SpriteKit
-#endif
 
 #if os(OSX)
 import AppKit
+
+typealias OSImage = NSImage
+typealias OSColor = NSColor
+typealias OSBezierPath = NSBezierPath
 #endif
+
 #if os(iOS)
 import UIKit
+
+typealias OSImage = UIImage
+typealias OSColor = UIColor
+typealias OSBezierPath = UIBezierPath
 #endif
 
 // A struct type that gets destructured by the default mirror.

println("\(intNSArrayMirror[0].0): \(intNSArrayMirror[0].1.summary)")
// CHECK-NEXT: [4]: 5
println("\(intNSArrayMirror[4].0): \(intNSArrayMirror[4].1.summary)")
#endif


#if os(OSX) || os(iOS)
let numset = NSSet(objects: 1,2,3,4)
let numsetMirror = reflect(numset)
// CHECK-NEXT: 4 elements

// CHECK-NEXT: (Metatype)
println(reflect(String.self).summary)

// Check ObjC mirror implementation.
// CHECK-LABEL: ObjC:
println("ObjC:")
