Files
swift-mirror/test/1_stdlib/AssetsLibrary.swift
Jordan Rose e83c117c30 [test] Hack: run stdlib tests first to start long-running tests earlier.
This decreases total testing time by over a minute on my old Mac Pro.
It probably has much less effect on systems with fewer cores, but shouldn't
be any worse there.

Swift SVN r22745
2014-10-15 01:30:51 +00:00

16 lines
507 B
Swift

// RUN: %target-run-simple-swift
// REQUIRES: OS=ios
import AssetsLibrary
// Test the enumerateGroupsWithTypes overload that accepts UInt32.
// This should compile and not crash at runtime.
let library = ALAssetsLibrary()
library.enumerateGroupsWithTypes(ALAssetsGroupAll,
usingBlock: {(group: ALAssetsGroup!, stop: UnsafeMutablePointer<ObjCBool>) -> Void in
println("Swift usingBlock")},
failureBlock: {(error: NSError!) -> Void in
println("Swift failureBlock")})