Files
swift-mirror/test/Interpreter/SDK/c_function_pointer_compile.swift
2015-06-01 23:44:13 +00:00

11 lines
235 B
Swift

// RUN: %target-build-swift -emit-ir %s
// REQUIRES: executable_test
// REQUIRES: objc_interop
import Dispatch
func getAnyValue<T>(opt: T?) -> T { return opt! }
dispatch_sync_f(getAnyValue(nil), getAnyValue(nil), getAnyValue(nil))