Skip to content

Commit c17e87c

Browse files
committed
Update test for transparent integral conversions
1 parent 667939e commit c17e87c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/SILOptimizer/diagnostic_constant_propagation.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ func testArithmeticOverflow() {
3434
xu8_3 += 40 // expected-error {{arithmetic operation '240 + 40' (on type 'UInt8') results in an overflow}}
3535
var _ : UInt8 = 240 + 5 + 15 // expected-error {{arithmetic operation '245 + 15' (on type 'UInt8') results in an overflow}}
3636

37-
var _ = Int8(126) + Int8(1+1) // FIXME: false negative: overflow that is not
38-
// caught by diagnostics (see also <rdar://problem/39120081>).
37+
var _ = Int8(126) + Int8(1+1) // expected-error{{arithmetic operation '126 + 2' (on type 'Int8') results in an overflow}}
3938

4039
var _: Int8 = (1 << 7) - 1 // FIXME: false negative: should expect an error
4140
// like {{arithmetic operation '-128 - 1' (on type 'Int8') results in an overflow}}

0 commit comments

Comments
 (0)