Skip to content

Commit e896211

Browse files
author
Marc Rasi
committed
clarify comment
1 parent 14cc50c commit e896211

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/SILOptimizer/pound_assert.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,9 @@ func test_trapsAndOverflows() {
103103
// expected-error @+1 {{arithmetic operation '124 + 92' (on type 'Int8') results in an overflow}}
104104
#assert((124 as Int8) + 92 < 42)
105105

106-
// The error message below is generated by the traditional constant folder.
107-
// The constant folder responsible for #assert does generate an error message
108-
// because the traditional constant folder does not replace the condition
109-
// with a constant.
106+
// One error message below is generated by the traditional constant folder.
107+
// The constant folder responsible for #assert does generate an additional
108+
// error message.
110109
// expected-error @+2 {{integer literal '123231' overflows when stored into 'Int8'}}
111110
// expected-error @+1 {{#assert condition not constant}}
112111
#assert(Int8(123231) > 42)

0 commit comments

Comments
 (0)