mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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
9 lines
196 B
Swift
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))
|