mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
`Optional` is now depending on `$NonescapableTypes`, and thus the compiler no longer generates `#else` branches to allow suppressing that feature.
8 lines
350 B
Swift
8 lines
350 B
Swift
// REQUIRES: swift_swift_parser
|
|
|
|
// RUN: %target-typecheck-verify-swift -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir -verify
|
|
|
|
@_SwiftifyImport(.countedBy(pointer: .param(1), count: "len"), .nonescaping(pointer: .param(1)))
|
|
func nullableSpan(_ ptr: UnsafePointer<CInt>?, _ len: CInt) {
|
|
}
|