Skip to content

Commit 5d116be

Browse files
committed
[Tests] Make some checks in invalid-top less specific
There was a change in the diagnostics that isn't in 5.5. The error message itself doesn't matter too much here, just that there was one. Simplify the CHECK clause so that it will pass in main and 5.5 to avoid future conflicts.
1 parent c9ac392 commit 5d116be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Serialization/AllowErrors/invalid-top.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ func test(s: ValidType) {
3636
// Check SIL diagnostics are still output (no reason not to output SIL since
3737
// there were no errors)
3838
func other() -> Int {}
39-
// CHECK-VALID: valid-uses.swift:10:22: error: missing return in global function expected to return 'Int'
39+
// CHECK-VALID: valid-uses.swift:10:22: error: missing return
4040
func other2() -> Bool {}
41-
// CHECK-VALID: valid-uses.swift:12:24: error: missing return in global function expected to return 'Bool'
41+
// CHECK-VALID: valid-uses.swift:12:24: error: missing return
4242

4343

4444
// BEGIN invalid-uses.swift

0 commit comments

Comments
 (0)