mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
* First sweep of Swift 3 stdlib test upgrades * Review feedback * Remove a handful more #if >=4.0 * Fix up Dictionary tests
7 lines
356 B
Swift
7 lines
356 B
Swift
// RUN: %target-typecheck-verify-swift -swift-version 4
|
|
|
|
func signedBitPattern() {
|
|
_ = Int64(bitPattern: 0.0) // expected-error {{Please use Int64(bitPattern: UInt64) in combination with Double.bitPattern property.}}
|
|
_ = Int32(bitPattern: 0.0) // expected-error {{Please use Int32(bitPattern: UInt32) in combination with Float.bitPattern property.}}
|
|
}
|