Files
swift-mirror/test/Interpreter/SDK/objc_factory_method.swift
2018-06-27 13:05:36 -07:00

12 lines
305 B
Swift

// RUN: %empty-directory(%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: NSImage.Name.trashEmpty)
// CHECK: TrashEmpty
print(image!.name()!)