Files
swift-mirror/test/1_stdlib/AssetsLibrary.swift
Arnold Schwaighofer 859fbc0162 More executable_test for the test directory
Swift SVN r29280
2015-06-03 23:28:51 +00:00

17 lines
532 B
Swift

// RUN: %target-run-simple-swift
// REQUIRES: executable_test
// 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
print("Swift usingBlock")},
failureBlock: {(error: NSError!) -> Void in
print("Swift failureBlock")})