mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Honour the SDK for APINotes to augment the system libraries. This allows us to distribute APINotes with the Swift SDK and impact the system without having to map the APINotes into the filesystem.
7 lines
211 B
Swift
7 lines
211 B
Swift
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck %s -verify
|
|
|
|
import cfuncs
|
|
|
|
let array: [UnsafePointer<CChar>?] = [nil]
|
|
array.withUnsafeBufferPointer { nullability_note($0.baseAddress!) }
|