Skip to content

Commit 622a140

Browse files
authored
Merge pull request #17796 from rintaro/parse-drop3-tests
[Parse] Migrate tests to Swift4
2 parents fe9385a + 5cbbadb commit 622a140

File tree

5 files changed

+15
-41
lines changed

5 files changed

+15
-41
lines changed

test/Interpreter/bool_as_generic.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
// RUN: %target-run-simple-swift-swift3 | %FileCheck %s
1+
// RUN: %target-run-simple-swift | %FileCheck %s
22
// REQUIRES: executable_test
33
// <rdar://problem/13986638> Missing Bool metadata when Bool is used as a generic
44
// parameter or existential value
55

6-
prefix operator !! {}
7-
infix operator &&& {}
6+
prefix operator !!
7+
infix operator &&&
88

99
protocol BooleanProtocol {
1010
var boolValue: Bool { get }

test/Interpreter/tuples.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
// RUN: %target-run-simple-swift-swift3 | %FileCheck %s
1+
// RUN: %target-run-simple-swift | %FileCheck %s
22
// REQUIRES: executable_test
33

44
typealias Interval = (lo: Int, hi: Int)
55

6-
infix operator <+> {}
7-
infix operator <-> {}
8-
infix operator <+>= {}
6+
infix operator <+>
7+
infix operator <->
8+
infix operator <+>=
99

1010
func <+>(a: Interval, b: Interval) -> Interval {
1111
return (a.lo + b.lo, a.hi + b.hi)

test/Parse/ConditionalCompilation/identifierName.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-typecheck-verify-swift -swift-version 3
1+
// RUN: %target-typecheck-verify-swift
22

33
// Ensure that the identifiers in compilation conditions don't reference
44
// any decls in the scope.
@@ -23,10 +23,10 @@ func f2(
2323
_ = _endian + big + little
2424
#elseif _runtime(_ObjC) && _runtime(_Native)
2525
_ = _runtime + _ObjC + _Native
26-
#elseif swift(>=1.0) && _compiler_version("3.*.0")
27-
_ = swift + _compiler_version
2826
#elseif targetEnvironment(simulator)
2927
_ = targetEnvironment + simulator
28+
#elseif swift(>=1.0) && _compiler_version("4.*.0")
29+
_ = swift + _compiler_version
3030
#endif
3131

3232
}
@@ -51,10 +51,10 @@ func f2() {
5151
_ = _endian + big + little
5252
#elseif _runtime(_ObjC) && _runtime(_Native)
5353
_ = _runtime + _ObjC + _Native
54-
#elseif swift(>=1.0) && _compiler_version("3.*.0")
55-
_ = swift + _compiler_version
5654
#elseif targetEnvironment(simulator)
5755
_ = targetEnvironment + simulator
56+
#elseif swift(>=1.0) && _compiler_version("4.*.0")
57+
_ = swift + _compiler_version
5858
#endif
5959

6060
}
@@ -74,8 +74,8 @@ struct S {
7474
#elseif arch(i386) && arch(arm)
7575
#elseif _endian(big) && _endian(little)
7676
#elseif _runtime(_ObjC) && _runtime(_Native)
77-
#elseif swift(>=1.0) && _compiler_version("3.*.0")
7877
#elseif targetEnvironment(simulator)
78+
#elseif swift(>=1.0) && _compiler_version("4.*.0")
7979
#endif
8080

8181
}

test/Parse/swift3_warnings_swift4_errors_version_3.swift

Lines changed: 0 additions & 26 deletions
This file was deleted.

test/Prototypes/GenericDispatch.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
// prototype to which we can refer when building the standard library.
1616
//
1717
//===----------------------------------------------------------------------===//
18-
// RUN: %target-run-simple-swift-swift3 | %FileCheck %s
18+
// RUN: %target-run-simple-swift | %FileCheck %s
1919
// REQUIRES: executable_test
2020

2121
// CHECK: testing...
@@ -34,7 +34,7 @@ protocol F {
3434
// refinement of F having a non-default distance implementation need
3535
// to know about it. These refinements are expected to be rare
3636
// (which is why defaulted requirements are a win)
37-
func ~> (_: Self, _: (_Distance, (Self))) -> Int
37+
static func ~> (_: Self, _: (_Distance, (Self))) -> Int
3838
}
3939

4040
// Operation tag for distance

0 commit comments

Comments
 (0)