   case .Some(_): println("non-Int object")
   default: println("nil is good here")
 }
-
-#if os(OSX) || os(iOS)
 
 // <rdar://problem/17027510>
 struct Pear<T, U> { let fst: T; let snd: U }

// CHECK-NEXT: got the expected quick look color
// CHECK-NEXT: got the expected quick look bezier path

#endif

#if os(OSX)
let image = NSImage(contentsOfFile:Process.arguments[1])
switch reflect(image).quickLookObject {
case .Some(.Image(let image2 as NSImage)) where image === image2:
  println("got the expected quick look image")
case _:
  println("got something else")
}

let color = NSColor.blackColor()! // FIXME: unnecessary bang
switch reflect(color).quickLookObject {
case .Some(.Color(let color2 as NSColor)) where color === color2:
  println("got the expected quick look color")
case _:
  println("got something else")
}

let path = NSBezierPath()
switch reflect(path).quickLookObject {
case .Some(.BezierPath(let path2 as NSBezierPath)) where path === path2:
  println("got the expected quick look bezier path")
case _:
  println("got something else")
}
#endif

#if os(iOS)
let image = UIImage(contentsOfFile:Process.arguments[1])
switch reflect(image).quickLookObject {
case .Some(.Image(let image2 as UIImage)) where image === image2:
  println("got the expected quick look image")
case _:
  println("got something else")
}

let color = UIColor.blackColor()! // FIXME: unnecessary bang
switch reflect(color).quickLookObject {
case .Some(.Color(let color2 as UIColor)) where color === color2:
  println("got the expected quick look color")
case _:
  println("got something else")
}

let path = UIBezierPath()
switch reflect(path).quickLookObject {
case .Some(.BezierPath(let path2 as UIBezierPath)) where path === path2:
  println("got the expected quick look bezier path")
case _:
  println("got something else")
}
#endif

#if os(OSX) || os(iOS)
let intNSArray : NSArray = [1 as NSNumber,2 as NSNumber,3 as NSNumber,4 as NSNumber,5 as NSNumber]
let intNSArrayMirror = reflect(intNSArray)
// CHECK-NEXT: 5 elements

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

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