Files
swift-mirror/test/Interpreter/SDK/c_function_pointer_compile.swift
Arnold Schwaighofer 3643c614a3 Run tests in optimize test modes
This runs all files that have a target-build-swift or target-run-stdlib-swift
RUN line in optimize test mode.

Swift SVN r29206
2015-06-01 21:23:31 +00:00

13 lines
280 B
Swift

// Also run this test in optimize test modes.
// REQUIRES: optimize_test
// RUN: %target-build-swift -emit-ir %s
// REQUIRES: objc_interop
import Dispatch
func getAnyValue<T>(opt: T?) -> T { return opt! }
dispatch_sync_f(getAnyValue(nil), getAnyValue(nil), getAnyValue(nil))