Files
swift-mirror/test/Interpreter/SDK/c_function_pointer_compile.swift
Doug Gregor 5524c0a393 Honor the Clang nonnull and returns_nonnull attributes in the importer.
Non-null attributes can indicate non-optionality of pointers. While
these non-null attributes are generally less useful than the
nullability type specifiers, they are occasionally used in the
wild. Addresses rdar://problem/18428099.

Swift SVN r23733
2014-12-05 06:58:54 +00:00

9 lines
196 B
Swift

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