mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
I did this using a sed pattern and verified by hand that I was only touching target-swift-emit-silgen lines.
7 lines
287 B
Swift
7 lines
287 B
Swift
// RUN: %target-swift-emit-silgen -verify -parse-as-library %s
|
|
|
|
func foo(x: UnsafeMutablePointer<UnsafeMutablePointer<()>?>) { // expected-warning {{UnsafeMutablePointer<Void> has been replaced by UnsafeMutableRawPointer}}
|
|
_ = x.pointee?.pointee
|
|
_ = x.pointee.map { type(of: $0) }
|
|
}
|