blob: bc9278f539f55c1e9729e8ed5c55f3a3b62a4a57 [file] [log] [blame]
// RUN: %target-typecheck-verify-swift %clang-importer-sdk -swift-version 4
import ctypes
func testArrays() {
// It would also be nice to warn here about the arrays being too short, but
// that's probably beyond us for a while.
staticBoundsArray([])
staticBoundsArray(nil) // expected-error {{nil is not compatible with expected argument type 'UnsafePointer<Int8>'}}
}