mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
12 lines
305 B
Swift
12 lines
305 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: executable_test
|
|
// REQUIRES: OS=macosx
|
|
|
|
import AppKit
|
|
|
|
let image = NSImage(named: NSImageNameTrashEmpty)
|
|
// CHECK: TrashEmpty
|
|
print(image!.name()!)
|