Skip to content

Commit 2ff7492

Browse files
Update other tests to handle trailing comma
1 parent 1cdf721 commit 2ff7492

File tree

3 files changed

+0
-13
lines changed

3 files changed

+0
-13
lines changed

test/Parse/availability_query_unavailability.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,6 @@ if #unavailable(OSX 10.51, iOS 8.0) {
8080
if #unavailable(OSX 10.51, { // expected-error {{expected platform name}} // expected-error {{expected ')'}} expected-note {{to match this opening '('}}
8181
}
8282

83-
if #unavailable(OSX 10.51,) { // expected-error {{expected platform name}}
84-
}
85-
8683
if #unavailable(OSX 10.51, iOS { // expected-error {{expected version number}} // expected-error {{expected ')'}} expected-note {{to match this opening '('}}
8784
}
8885

test/Parse/ifconfig_expr.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,6 @@ func canImportVersioned() {
166166
#if canImport(A, unknown: 2.2) // expected-error {{2nd parameter of canImport should be labeled as _version or _underlyingVersion}}
167167
let a = 1
168168
#endif
169-
170-
#if canImport(A,) // expected-error {{unexpected ',' separator}}
171-
let a = 1
172-
#endif
173169

174170
#if canImport(A, 2.2) // expected-error {{2nd parameter of canImport should be labeled as _version or _underlyingVersion}}
175171
let a = 1

test/Parse/invalid.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,6 @@ do {
7676
func g() { f(Starfish(), Salmon()) }
7777
}
7878

79-
// https://github.com/apple/swift/issues/43313
80-
do {
81-
func f(_ a: Int, b: Int) {}
82-
f(1, b: 2,) // expected-error {{unexpected ',' separator}}
83-
}
84-
8579
// https://github.com/apple/swift/issues/43591
8680
// Two inout crash compiler
8781

0 commit comments

Comments
 (0)