mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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
16 lines
507 B
Swift
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")})
|
|
|