Files
swift-mirror/test/Interpreter/SDK/c_function_pointer_compile.swift

11 lines
237 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))