mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Plus, smaller enhancements on the other frameworks. Removes the need for _PrintableNSObjectType hack (rdar://problem/16883288) Swift SVN r22185
11 lines
278 B
Swift
11 lines
278 B
Swift
// RUN: rm -rf %t && mkdir %t
|
|
// RUN: %target-build-swift -module-name FactoryTest %s -o %t/a.out
|
|
// RUN: %target-run %t/a.out | FileCheck %s
|
|
// REQUIRES: OS=macosx
|
|
|
|
import AppKit
|
|
|
|
let image = NSImage(named: NSImageNameTrashEmpty)
|
|
// CHECK: TrashEmpty
|
|
println(image!.name()!)
|