blob: f06b7f4c30aadc61a6650e2db715e8ca735d01a4 [file] [log] [blame]
// RUN: %target-typecheck-verify-swift
func foo(_ a: [[UInt8]], _ p: [UnsafeRawPointer]) {
foo(a, a) // expect-warning {{all paths through this function will call itself}}
}
// rdar://problem/44658089
func takesPtr(_: UnsafePointer<UInt8>) {}
func givesPtr(_ str: String) {
takesPtr(UnsafePointer(str))
}