mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
get the same wording, fixing <rdar://problem/21964599> Different diagnostics for the same issue While I'm in the area, remove some dead code. Swift SVN r30713
15 lines
465 B
Swift
15 lines
465 B
Swift
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -parse -verify %s
|
|
|
|
import cvars
|
|
|
|
func getPI() -> Float {
|
|
return PI
|
|
}
|
|
|
|
func testPointers() {
|
|
let cp = globalConstPointer
|
|
cp.abcde() // expected-error {{value of type 'UnsafePointer<Void>' (aka 'UnsafePointer<()>') has no member 'abcde'}}
|
|
let mp = globalPointer
|
|
mp.abcde() // expected-error {{value of type 'UnsafeMutablePointer<Void>' (aka 'UnsafeMutablePointer<()>') has no member 'abcde'}}
|
|
}
|