Skip to content

Commit 1b121e5

Browse files
Merge pull request #60921 from AnthonyLatsis/migrate-test-suite-to-gh-issues-18
Gardening: Migrate test suite to GH issues p. 18
2 parents 334f22c + d98a761 commit 1b121e5

26 files changed

+159
-124
lines changed

test/Reflection/box_descriptors.sil

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
// RUN: %target-build-swift %s -emit-module -emit-library -module-name capture_descriptors -o %t/capture_descriptors%{target-shared-library-suffix}
33
// RUN: %target-swift-reflection-dump -binary-filename %t/capture_descriptors%{target-shared-library-suffix} | %FileCheck %s
44

5-
// SR-10758
5+
// https://github.com/apple/swift/issues/53148
66
// UNSUPPORTED: OS=linux-gnu, OS=linux-android, OS=linux-androideabi
77

8-
// SR-12893
8+
// https://github.com/apple/swift/issues/55339
99
// XFAIL: OS=openbsd
1010

1111
sil_stage canonical

test/Reflection/capture_descriptors.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
// REQUIRES: no_asan
33

4-
// SR-12893
4+
// https://github.com/apple/swift/issues/55339
55
// XFAIL: OS=openbsd
66
// UNSUPPORTED: OS=linux-android, OS=linux-androideabi
77

test/Reflection/typeref_decoding_imported.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// XFAIL: OS=windows-msvc
22

3-
// SR-12893
3+
// https://github.com/apple/swift/issues/55339
44
// XFAIL: OS=openbsd
55

66
// RUN: %empty-directory(%t)

test/Runtime/lazy_witness_table_cycle.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
// REQUIRES: executable_test
33
// REQUIRES: foundation
44

5-
// SR-5958
5+
// https://github.com/apple/swift/issues/48517
6+
67
import Foundation
78

89
public struct Property: Equatable, Hashable, Codable {

test/Sanitizers/tsan/racy_async_let_fibonacci.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// UNSUPPORTED: back_deployment_runtime
1313

1414
// rdar://86825277
15-
// SR-15805
15+
// https://github.com/apple/swift/issues/58082
1616
// UNSUPPORTED: CPU=arm64 || CPU=arm64e
1717

1818
// Disabled because this test is flaky rdar://76542113

test/Sema/accessibility_private.swift

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,13 +207,14 @@ extension Container {
207207
fileprivate class PrivateGenericUser<T> where T: PrivateInnerClass {} // expected-error {{generic class cannot be declared fileprivate because its generic requirement uses a private type}} {{none}}
208208
}
209209

210-
fileprivate struct SR2579 {
210+
// https://github.com/apple/swift/issues/45184
211+
fileprivate struct C_45184 {
211212
private struct Inner {
212213
private struct InnerPrivateType {}
213-
var innerProperty = InnerPrivateType() // expected-error {{property must be declared private because its type 'SR2579.Inner.InnerPrivateType' uses a private type}}
214+
var innerProperty = InnerPrivateType() // expected-error {{property must be declared private because its type 'C_45184.Inner.InnerPrivateType' uses a private type}}
214215
}
215216
// FIXME: We need better errors when one access violation results in more
216217
// downstream.
217-
private var outerProperty = Inner().innerProperty // expected-error {{property cannot be declared in this context because its type 'SR2579.Inner.InnerPrivateType' uses a private type}}
218-
var outerProperty2 = Inner().innerProperty // expected-error {{property must be declared private because its type 'SR2579.Inner.InnerPrivateType' uses a private type}}
218+
private var outerProperty = Inner().innerProperty // expected-error {{property cannot be declared in this context because its type 'C_45184.Inner.InnerPrivateType' uses a private type}}
219+
var outerProperty2 = Inner().innerProperty // expected-error {{property must be declared private because its type 'C_45184.Inner.InnerPrivateType' uses a private type}}
219220
}

test/Sema/call_as_function_generic.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ _ = genericString("Hello")
4242
let genericInt = GenericType<Set<Int>>(collection: [1, 2, 3])
4343
_ = genericInt(initialValue: 1)
4444

45-
// SR-11386
45+
// https://github.com/apple/swift/issues/53787
46+
4647
class C<T> {}
4748
protocol P1 {}
4849
extension C where T : P1 { // expected-note {{where 'T' = 'Int'}}

test/Sema/call_as_function_simple.swift

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,8 @@ func testIUO(a: SimpleCallable!, b: MultipleArgsCallable!, c: Extended!,
199199
_ = try? h { throw DummyError() }
200200
}
201201

202-
// SR-11778
202+
// https://github.com/apple/swift/issues/54185
203+
203204
struct DoubleANumber {
204205
func callAsFunction(_ x: Int, completion: (Int) -> Void = { _ in }) {
205206
completion(x + x)
@@ -211,7 +212,8 @@ func testDefaults(_ x: DoubleANumber) {
211212
x(5, completion: { _ in })
212213
}
213214

214-
// SR-11881
215+
// https://github.com/apple/swift/issues/54296
216+
215217
struct IUOCallable {
216218
static var callable: IUOCallable { IUOCallable() }
217219
func callAsFunction(_ x: Int) -> IUOCallable! { nil }
@@ -235,12 +237,14 @@ func testAccessControl(_ x: PrivateCallable) {
235237
x(5) // expected-error {{'callAsFunction' is inaccessible due to 'private' protection level}}
236238
}
237239

238-
struct SR_11909 {
239-
static let s = SR_11909()
240-
func callAsFunction(_ x: Int = 0) -> SR_11909 { SR_11909() }
241-
}
240+
// https://github.com/apple/swift/issues/54327
241+
do {
242+
struct S {
243+
static let s = S()
244+
func callAsFunction(_ x: Int = 0) -> S {}
245+
}
242246

243-
func testDefaultsWithUMEs(_ x: SR_11909) {
244-
let _: SR_11909 = .s()
245-
let _: SR_11909 = .s(5)
247+
// Test default argument with 'UnresolvedMemberExpr'.
248+
let _: S = .s()
249+
let _: S = .s(5)
246250
}

test/Sema/circularity_multifile_error.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %target-swift-frontend -emit-silgen -verify -primary-file %s %S/Inputs/circularity_multifile_error_helper.swift
22

3-
// SR-4594
3+
// https://github.com/apple/swift/issues/47171
44

55
struct A {
66
var b: AnUndefinedType // expected-error {{cannot find type 'AnUndefinedType' in scope}}

test/Sema/complex_expressions.swift

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// RUN: %target-typecheck-verify-swift
22

3-
// SR-838:
4-
// expression test_seconds() was too complex to be solved in reasonable time
3+
// https://github.com/apple/swift/issues/43450
4+
// Expression in 'test_seconds' was too complex to be solved in reasonable time
5+
56
struct Nano : CustomStringConvertible {
67
var value: Int64 = 0
78
init(_ x: Int64) { self.value = x }
@@ -30,8 +31,8 @@ func test_seconds() {
3031
print((u_minute + u_second + Nano(500)) + " = " + (1.i + 1.s + 500.ns))
3132
}
3233

33-
// SR-2102:
34-
// DictionaryExpr was too complex to be solved in reasonable time
34+
// https://github.com/apple/swift/issues/44710:
35+
// 'DictionaryExpr' was too complex to be solved in reasonable time
3536

3637
let M_PI: Double = 3.1415926535897931
3738
let M_E : Double = 2.7182818284590451
@@ -74,14 +75,16 @@ var operations: Dictionary<String, Operation> = [
7475
"=": .equals,
7576
]
7677

77-
// SR-1794
78-
struct P {
79-
let x: Float
80-
let y: Float
81-
}
78+
// https://github.com/apple/swift/issues/44403
79+
do {
80+
struct P {
81+
let x: Float
82+
let y: Float
83+
}
8284

83-
func sr1794(pt: P, p0: P, p1: P) -> Bool {
84-
return (pt.x - p0.x) * (p1.y - p0.y) - (pt.y - p0.y) * (p1.x - p0.x) < 0.0
85+
func f(pt: P, p0: P, p1: P) -> Bool {
86+
return (pt.x - p0.x) * (p1.y - p0.y) - (pt.y - p0.y) * (p1.x - p0.x) < 0.0
87+
}
8588
}
8689

8790
// Tests for partial contextual type application in sub-expressions
@@ -94,18 +97,18 @@ let v5 = ([1 + 2 + 3, 4] as [UInt32]) + ([2 * 3] as [UInt32])
9497
let v6 = [1 + 2 + 3, 4] as Set<UInt32>
9598
let v7: [UInt32] = [55 * 8, 0]
9699

97-
// SR-3668
100+
// https://github.com/apple/swift/issues/46253
98101
// "Expression was too complex" errors for short dictionary literals
99102
// of simple closure expressions
100103

101-
let sr3668Dict1: Dictionary<Int, (Int, Int) -> Bool> =
104+
let _: Dictionary<Int, (Int, Int) -> Bool> =
102105
[ 0: { $0 == $1 }, 1: { $0 == $1 }, 2: { $0 == $1 }, 3: { $0 == $1 },
103106
4: { $0 == $1 }, 5: { $0 == $1 }, 6: { $0 == $1 }, 7: { $0 == $1 },
104107
8: { $0 == $1 }, 9: { $0 == $1 }, 10: { $0 == $1 }, 11: { $0 == $1 },
105108
12: { $0 == $1 }, 13: { $0 == $1 }, 14: { $0 == $1 }, 15: { $0 == $1 },
106109
16: { $0 == $1 }, 17: { $0 == $1 }, 18: { $0 == $1 }, 19: { $0 == $1 } ]
107110

108-
let sr3668Dict2: [Int: (Int, Int) -> Bool] =
111+
let _: [Int: (Int, Int) -> Bool] =
109112
[ 0: { $0 != $1 }, 1: { $0 != $1 }, 2: { $0 != $1 }, 3: { $0 != $1 },
110113
4: { $0 != $1 }, 5: { $0 != $1 }, 6: { $0 != $1 }, 7: { $0 != $1 },
111114
8: { $0 != $1 }, 9: { $0 != $1 }, 10: { $0 != $1 }, 11: { $0 != $1 },

0 commit comments

Comments
 (0)