Skip to content

Commit 9a81ac7

Browse files
committed
Remove obsolete tests from FixedPointDiagnostics (again)
1 parent d003072 commit 9a81ac7

File tree

1 file changed

+0
-53
lines changed

1 file changed

+0
-53
lines changed

validation-test/stdlib/FixedPointDiagnostics.swift.gyb

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -25,59 +25,6 @@ var u32 : UInt32 = u // expected-error {{}}
2525
var u16 : UInt16 = u // expected-error {{}}
2626
var u8 : UInt8 = u // expected-error {{}}
2727

28-
func expectSameType<T>(_: T.Type, _: T.Type) {}
29-
30-
func test_truncatingBitPatternAPIIsStableAcrossPlatforms() {
31-
// Audit and update this test when adding new integer types.
32-
expectSameType(Int64.self, IntMax.self) // expected-error {{'IntMax' has been renamed to 'Int64'}}
33-
expectSameType(UInt64.self, UIntMax.self) // expected-error {{'UIntMax' has been renamed to 'UInt64'}}
34-
35-
_ = UInt8(truncatingBitPattern: UInt(0)) // expected-error {{'init(truncatingBitPattern:)' has been renamed to 'init(truncatingIfNeeded:)'}}
36-
_ = UInt16(truncatingBitPattern: UInt(0)) // expected-error {{'init(truncatingBitPattern:)' has been renamed to 'init(truncatingIfNeeded:)'}}
37-
_ = UInt32(truncatingBitPattern: UInt(0)) // expected-error {{'init(truncatingBitPattern:)' has been renamed to 'init(truncatingIfNeeded:)'}}
38-
UInt64(truncatingBitPattern: UInt(0)) // expected-error {{incorrect argument label in call (have 'truncatingBitPattern:', expected '_truncatingBits:')}}
39-
UInt(truncatingBitPattern: UInt(0)) // expected-error {{cannot invoke initializer for type 'UInt' with an argument list of type '(truncatingBitPattern: UInt)'}} expected-note {{overloads for 'UInt' exist with these partially matching parameter lists: (truncatingBitPattern: Int64), (truncatingBitPattern: UInt64)}}
40-
41-
_ = Int8(truncatingBitPattern: UInt(0)) // expected-error {{'init(truncatingBitPattern:)' has been renamed to 'init(truncatingIfNeeded:)'}}
42-
_ = Int16(truncatingBitPattern: UInt(0)) // expected-error {{'init(truncatingBitPattern:)' has been renamed to 'init(truncatingIfNeeded:)'}}
43-
_ = Int32(truncatingBitPattern: UInt(0)) // expected-error {{'init(truncatingBitPattern:)' has been renamed to 'init(truncatingIfNeeded:)'}}
44-
Int64(truncatingBitPattern: UInt(0)) // expected-error {{incorrect argument label in call (have 'truncatingBitPattern:', expected '_truncatingBits:')}}
45-
Int(truncatingBitPattern: UInt(0)) // expected-error {{}} expected-note * {{}}
46-
47-
_ = UInt8(truncatingBitPattern: Int(0)) // expected-error {{'init(truncatingBitPattern:)' has been renamed to 'init(truncatingIfNeeded:)'}}
48-
_ = UInt16(truncatingBitPattern: Int(0)) // expected-error {{'init(truncatingBitPattern:)' has been renamed to 'init(truncatingIfNeeded:)'}}
49-
_ = UInt32(truncatingBitPattern: Int(0)) // expected-error {{'init(truncatingBitPattern:)' has been renamed to 'init(truncatingIfNeeded:)'}}
50-
UInt64(truncatingBitPattern: Int(0)) // expected-error {{argument labels '(truncatingBitPattern:)' do not match any available overloads}}
51-
// expected-note@-1 {{overloads for 'UInt64' exist with these partially matching parameter lists}}
52-
UInt(truncatingBitPattern: Int(0)) // expected-error {{}} expected-note * {{}}
53-
54-
_ = Int8(truncatingBitPattern: Int(0)) // expected-error {{'init(truncatingBitPattern:)' has been renamed to 'init(truncatingIfNeeded:)'}}
55-
_ = Int16(truncatingBitPattern: Int(0)) // expected-error {{'init(truncatingBitPattern:)' has been renamed to 'init(truncatingIfNeeded:)'}}
56-
_ = Int32(truncatingBitPattern: Int(0)) // expected-error {{'init(truncatingBitPattern:)' has been renamed to 'init(truncatingIfNeeded:)'}}
57-
Int64(truncatingBitPattern: Int(0)) // expected-error {{}} expected-note * {{}}
58-
Int(truncatingBitPattern: Int(0)) // expected-error {{}} expected-note * {{}}
59-
60-
UInt(truncatingBitPattern: UInt8(0)) // expected-error {{}} expected-note * {{}}
61-
UInt(truncatingBitPattern: UInt16(0)) // expected-error {{}} expected-note * {{}}
62-
UInt(truncatingBitPattern: UInt32(0)) // expected-error {{}} expected-note * {{}}
63-
_ = UInt(truncatingBitPattern: UInt64(0)) // expected-error {{'init(truncatingBitPattern:)' has been renamed to 'init(truncatingIfNeeded:)'}}
64-
65-
Int(truncatingBitPattern: UInt8(0)) // expected-error {{}} expected-note * {{}}
66-
Int(truncatingBitPattern: UInt16(0)) // expected-error {{}} expected-note * {{}}
67-
Int(truncatingBitPattern: UInt32(0)) // expected-error {{}} expected-note * {{}}
68-
_ = Int(truncatingBitPattern: UInt64(0)) // expected-error {{'init(truncatingBitPattern:)' has been renamed to 'init(truncatingIfNeeded:)'}}
69-
70-
UInt(truncatingBitPattern: Int8(0)) // expected-error {{}} expected-note * {{}}
71-
UInt(truncatingBitPattern: Int16(0)) // expected-error {{}} expected-note * {{}}
72-
UInt(truncatingBitPattern: Int32(0)) // expected-error {{}} expected-note * {{}}
73-
_ = UInt(truncatingBitPattern: Int64(0)) // expected-error {{'init(truncatingBitPattern:)' has been renamed to 'init(truncatingIfNeeded:)'}}
74-
75-
Int(truncatingBitPattern: Int8(0)) // expected-error {{}} expected-note * {{}}
76-
Int(truncatingBitPattern: Int16(0)) // expected-error {{}} expected-note * {{}}
77-
Int(truncatingBitPattern: Int32(0)) // expected-error {{}} expected-note * {{}}
78-
_ = Int(truncatingBitPattern: Int64(0)) // expected-error {{'init(truncatingBitPattern:)' has been renamed to 'init(truncatingIfNeeded:)'}}
79-
}
80-
8128
func testMixedSignArithmetic() {
8229
// Ensure that the generic arithmetic operators for Strideable don't
8330
// allow mixed-sign arithmetic to compile. We create a deliberate

0 commit comments

Comments
 (0)