mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
These are tests that fail in the next commit without this flag. This does not add -verify-ignore-unrelated to all tests with -verify, only the ones that would fail without it. This is NFC since this flag is currently a no-op.
8 lines
339 B
Swift
8 lines
339 B
Swift
// RUN: %target-typecheck-verify-swift -verify-ignore-unrelated
|
|
|
|
func unavailableModulo(description: String = "<rdar://problem/27855641>") {
|
|
_ = 42.0 % 2 // expected-error {{For floating point numbers use truncatingRemainder}}
|
|
var f: Float = 42.0
|
|
f %= 2 // expected-error {{For floating point numbers use formTruncatingRemainder}}
|
|
}
|