Files
swift-mirror/test/Interpreter/SDK/objc_factory_method.swift
2016-09-02 21:36:45 -07:00

12 lines
309 B
Swift

// RUN: rm -rf %t && mkdir -p %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()!)