Skip to content

Commit 6fe9dd3

Browse files
Merge pull request #60718 from AnthonyLatsis/migrate-test-suite-to-gh-issues-9
2 parents dd627b4 + 93c964f commit 6fe9dd3

28 files changed

+185
-153
lines changed

test/CrossImport/horrible.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ import UnitaryGoose
1616
// expected-error@-1 {{cannot list cross-import overlays for 'UnitaryGoose':}}
1717

1818
// FIXME: It might be better to diagnose these errors on HorribleGoose's import
19-
// decl, since they actually belong to HorribleGoose. (SR-12223)
19+
// decl, since they actually belong to HorribleGoose.
20+
// (https://github.com/apple/swift/issues/54649)
2021

2122
import FlockOfGoose
2223
// expected-error@-1 {{cannot load cross-import overlay for 'HorribleGoose' and 'FlockOfGoose':}}

test/CrossImport/remark-option.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// RUN: %target-typecheck-verify-swift -enable-cross-import-overlays -Rcross-import -I %t/include -I %t/lib/swift -F %t/Frameworks
55

66
import DeclaringLibrary
7-
// FIXME: Similarly to horrible.swift, ideally we would emit this remark on DeclaringLibrary
8-
// decl, since the cross-import overlay actually belongs to the DeclaringLibrary. (SR-12223)
7+
// FIXME: Similarly to horrible.swift, ideally we would emit this remark on
8+
// DeclaringLibrary decl, since the cross-import overlay actually belongs to
9+
// the DeclaringLibrary. (https://github.com/apple/swift/issues/54649)
910
import BystandingLibrary // expected-remark {{import of 'DeclaringLibrary' and 'BystandingLibrary' triggered a cross-import of '_OverlayLibrary'}}

test/DebugInfo/debug_variable.sil

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import Swift
66

77
sil_scope 2 { loc "simple.swift":1:2 parent @test_debug_value : $@convention(thin) (Int) -> () }
88

9-
// SR-14868: Incorrect source location on `llvm.dbg.declare` when the input
10-
// is SIL file.
9+
// https://github.com/apple/swift/issues/57215
10+
// Incorrect source location on 'llvm.dbg.declare' when the input is a SIL file
1111

1212
// CHECK: @test_debug_value
1313
// CHECK-SAME: !dbg ![[FUNC_DI:[0-9]+]]

test/DebugInfo/optimizer_pipeline.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
import Swift
66

77
// Test that DCE correctly preserves debug locations.
8-
// SR-15300: Compiler crash when using Builtin.unreachable in initializers
8+
9+
// https://github.com/apple/swift/issues/57622
10+
// Compiler crash when using 'Builtin.unreachable' in initializers
911
//
1012
// CHECK: sil_scope [[S1:[0-9]+]] { {{.*}} parent @$s18optimizer_pipeline1AVyACs13KeyValuePairsVyypypGcfC
1113
// CHECK: sil_scope [[S2:[0-9]+]] { {{.*}} parent [[S1]] }

test/DebugInfo/retroactive_conformance_witness_thunk.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-ir -g -primary-file %s
22

3-
// https://bugs.swift.org/browse/SR-14016
3+
// https://github.com/apple/swift/issues/56409
44

55
public struct PowerCollection<C : Collection> : Collection {
66
public typealias Index = [C.Index]

test/decl/circularity.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@ class D4 : C4, P1 { // expected-note 3 {{through reference here}}
110110
}
111111
}
112112

113-
// SR-12236
113+
// https://github.com/apple/swift/issues/54662
114114
// N.B. This used to compile in 5.1.
115-
protocol SR12236 { }
116-
class SR12236_A { // expected-note {{through reference here}}
117-
typealias Nest = SR12236 // expected-error {{circular reference}} expected-note {{through reference here}}
115+
protocol P_54662 { }
116+
class C_54662 { // expected-note {{through reference here}}
117+
typealias Nest = P_54662 // expected-error {{circular reference}} expected-note {{through reference here}}
118118
}
119-
extension SR12236_A: SR12236_A.Nest { }
119+
extension C_54662: C_54662.Nest { }

test/decl/enum/enumtest.swift

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,8 @@ func testSimpleEnum() {
299299
let _ : SimpleEnum=.X // expected-error {{'=' must have consistent whitespace on both sides}}
300300
}
301301

302-
enum SR510: String {
302+
// https://github.com/apple/swift/issues/43127
303+
enum E_43127: String {
303304
case Thing = "thing"
304305
case Bob = {"test"} // expected-error {{raw value for enum case must be a literal}}
305306
}
@@ -337,7 +338,8 @@ enum HasVariadic {
337338
case variadic(x: Int...) // expected-error {{variadic enum cases are not supported}}
338339
}
339340

340-
// SR-2176
341+
// https://github.com/apple/swift/issues/44784
342+
341343
enum Foo {
342344
case bar
343345
case none
@@ -446,7 +448,7 @@ protocol P {}
446448
enum E : C & P {}
447449
// expected-error@-1 {{inheritance from class-constrained protocol composition type 'C & P'}}
448450

449-
// SR-11522
451+
// https://github.com/apple/swift/issues/53923
450452

451453
enum EnumWithStaticNone1 {
452454
case a
@@ -573,7 +575,7 @@ let _: EnumWithTypealiasNone? = .none // Okay
573575
let _: EnumWithBothStructAndComputedNone? = .none // Okay
574576
let _: EnumWithBothTypealiasAndComputedNone? = .none // Okay
575577

576-
// SR-12063
578+
// https://github.com/apple/swift/issues/54499
577579

578580
let foo1: Foo? = Foo.none
579581
let foo2: Foo?? = Foo.none

test/decl/enum/special_case_name.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %target-typecheck-verify-swift -swift-version 5
22

3-
// https://bugs.swift.org/browse/SR-1660
3+
// https://github.com/apple/swift/issues/44269
44

55
enum DayOfTheWeek : Int {
66
case monday = 0

test/decl/ext/extensions.swift

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,9 @@ extension X3 {
122122
func foo() -> Int { return 0 }
123123
}
124124

125-
// Make sure the test case from https://bugs.swift.org/browse/SR-3847 doesn't
126-
// cause problems when the later extension is incorrectly nested inside another
127-
// declaration.
125+
// Make sure the test case from https://github.com/apple/swift/issues/46432
126+
// doesn't cause problems when the later extension is incorrectly nested inside
127+
// another declaration.
128128
extension C1.NestedStruct {
129129
static let originalValue = 0
130130
}
@@ -135,7 +135,7 @@ struct WrapperContext {
135135
}
136136

137137
// Class-constrained extension where protocol does not impose class requirement
138-
// SR-11298
138+
// https://github.com/apple/swift/issues/53699
139139

140140
protocol DoesNotImposeClassReq_1 {}
141141

@@ -352,11 +352,12 @@ extension Tree.BoughPayload.Contents {
352352
// expected-note@-2 {{did you mean to extend 'Nest<Int>' instead?}}
353353
}
354354

355-
// SR-10466 Check 'where' clause when referencing type defined inside extension
356-
struct SR_10466<T> {
357-
var a : A // expected-error {{'SR_10466<T>.A' (aka 'Int') requires the types 'T' and 'Never' be equivalent}}
355+
// https://github.com/apple/swift/issues/52866
356+
// Check 'where' clause when referencing type defined inside extension.
357+
struct S_52866<T> {
358+
var a : A // expected-error {{'S_52866<T>.A' (aka 'Int') requires the types 'T' and 'Never' be equivalent}}
358359
}
359-
extension SR_10466 where T == Never { // expected-note {{requirement specified as 'T' == 'Never' [with T = T]}}
360+
extension S_52866 where T == Never { // expected-note {{requirement specified as 'T' == 'Never' [with T = T]}}
360361
typealias A = Int
361362
}
362363

test/decl/ext/generic.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ extension Array2 where QQQ : VVV {}
175175
// expected-error@-1 {{cannot find type 'QQQ' in scope}}
176176
// expected-error@-2 {{cannot find type 'VVV' in scope}}
177177

178-
// https://bugs.swift.org/browse/SR-9009
178+
// https://github.com/apple/swift/issues/51512
179179
func foo() {
180180
extension Array where Element : P1 {
181181
// expected-error@-1 {{declaration is only valid at file scope}}

0 commit comments

Comments
 (0)