Skip to content

Commit f547826

Browse files
Merge pull request #60894 from AnthonyLatsis/migrate-test-suite-to-gh-issues-16
Gardening: Migrate test suite to GH issues p. 16
2 parents 1665778 + 4591933 commit f547826

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+131
-85
lines changed

test/IRGen/associated_type_witness.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,9 @@ struct UsesVoid : HasSimpleAssoc {
151151
typealias Assoc = ()
152152
}
153153

154-
// SR-11642: Failure to canonicalize type in associated type witness.
154+
// https://github.com/apple/swift/issues/54052
155+
// Failure to canonicalize type in associated type witness
156+
155157
struct Validator<T> {
156158
let validatorFailureType: Any.Type
157159
}

test/IRGen/async/partial_apply.sil

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,9 @@ bb0(%0 : $Int):
299299
// CHECK-LABEL: define internal swift{{(tail)?}}cc void @"$s24complex_generic_functionTA"(
300300
struct ComplexBoundedType<T: P2> {}
301301

302-
// SR-901: Ensure that a partial_apply which captures bound generic type
303-
// metadata doesn't crash when restoring the generic context.
302+
// https://github.com/apple/swift/issues/43513
303+
// Ensure that a 'partial_apply' which captures bound generic type metadata
304+
// doesn't crash when restoring the generic context.
304305

305306
sil hidden @generic_function : $@async @convention(thin) <T> () -> () {
306307
%0 = builtin "int_trap"() : $Never

test/IRGen/big_types_corner_cases.swift

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -261,76 +261,77 @@ class ClassWithLoadableStructWithBiggerString {
261261
}
262262

263263
//===----------------------------------------------------------------------===//
264-
// SR-8076
264+
// https://github.com/apple/swift/issues/50609
265265
//===----------------------------------------------------------------------===//
266-
public typealias sr8076_Filter = (BigStruct) -> Bool
267266

268-
public protocol sr8076_Query {
267+
public typealias Filter = (BigStruct) -> Bool
268+
269+
public protocol Query {
269270
associatedtype Returned
270271
}
271272

272-
public protocol sr8076_ProtoQueryHandler {
273-
func forceHandle_1<Q: sr8076_Query>(query: Q) -> Void
274-
func forceHandle_2<Q: sr8076_Query>(query: Q) -> (Q.Returned, BigStruct?)
275-
func forceHandle_3<Q: sr8076_Query>(query: Q) -> (Q.Returned, sr8076_Filter?)
276-
func forceHandle_4<Q: sr8076_Query>(query: Q) throws -> (Q.Returned, sr8076_Filter?)
273+
public protocol ProtoQueryHandler {
274+
func forceHandle_1<Q: Query>(query: Q) -> Void
275+
func forceHandle_2<Q: Query>(query: Q) -> (Q.Returned, BigStruct?)
276+
func forceHandle_3<Q: Query>(query: Q) -> (Q.Returned, Filter?)
277+
func forceHandle_4<Q: Query>(query: Q) throws -> (Q.Returned, Filter?)
277278
}
278279

279-
public protocol sr8076_QueryHandler: sr8076_ProtoQueryHandler {
280-
associatedtype Handled: sr8076_Query
280+
public protocol QueryHandler: ProtoQueryHandler {
281+
associatedtype Handled: Query
281282
func handle_1(query: Handled) -> Void
282283
func handle_2(query: Handled) -> (Handled.Returned, BigStruct?)
283-
func handle_3(query: Handled) -> (Handled.Returned, sr8076_Filter?)
284-
func handle_4(query: Handled) throws -> (Handled.Returned, sr8076_Filter?)
284+
func handle_3(query: Handled) -> (Handled.Returned, Filter?)
285+
func handle_4(query: Handled) throws -> (Handled.Returned, Filter?)
285286
}
286287

287288

288-
public extension sr8076_QueryHandler {
289+
public extension QueryHandler {
289290

290-
// CHECK-LABEL: define{{( dllexport)?}}{{( protected)?}} swiftcc void @"$s22big_types_corner_cases19sr8076_QueryHandlerPAAE13forceHandle_15queryyqd___tAA0e1_F0Rd__lF"(%swift.opaque* noalias nocapture %0, %swift.type*{{.*}}, %swift.type*{{.*}}, i8** {{.*}}.sr8076_QueryHandler, i8** {{.*}}.sr8076_Query, %swift.opaque* noalias nocapture swiftself %1)
291+
// CHECK-LABEL: define{{( dllexport)?}}{{( protected)?}} swiftcc void @"$s22big_types_corner_cases12QueryHandlerPAAE13forceHandle_15queryyqd___tAA0E0Rd__lF"(%swift.opaque* noalias nocapture %0, %swift.type*{{.*}}, %swift.type*{{.*}}, i8** {{.*}}.QueryHandler, i8** {{.*}}.Query, %swift.opaque* noalias nocapture swiftself %1)
291292
// CHECK: call swiftcc void {{.*}}(%swift.opaque* noalias nocapture {{.*}}, %swift.refcounted* swiftself {{.*}})
292293
// CHECK: ret void
293-
func forceHandle_1<Q: sr8076_Query>(query: Q) -> Void {
294+
func forceHandle_1<Q: Query>(query: Q) -> Void {
294295
guard let body = handle_1 as? (Q) -> Void else {
295296
fatalError("handler \(self) is expected to handle query \(query)")
296297
}
297298
body(query)
298299
}
299300

300-
// CHECK-LABEL: define{{( dllexport)?}}{{( protected)?}} swiftcc void @"$s22big_types_corner_cases19sr8076_QueryHandlerPAAE13forceHandle_25query8ReturnedQyd___AA9BigStructVSgtqd___tAA0e1_F0Rd__lF"(%T22big_types_corner_cases9BigStructVSg* noalias nocapture sret({{.*}}) %0, %swift.opaque* noalias nocapture %1, %swift.opaque* noalias nocapture %2, %swift.type*{{.*}}, %swift.type*{{.*}}, i8** {{.*}}.sr8076_QueryHandler, i8** {{.*}}.sr8076_Query, %swift.opaque* noalias nocapture swiftself %3)
301+
// CHECK-LABEL: define{{( dllexport)?}}{{( protected)?}} swiftcc void @"$s22big_types_corner_cases12QueryHandlerPAAE13forceHandle_25query8ReturnedQyd___AA9BigStructVSgtqd___tAA0E0Rd__lF"(%T22big_types_corner_cases9BigStructVSg* noalias nocapture sret({{.*}}) %0, %swift.opaque* noalias nocapture %1, %swift.opaque* noalias nocapture %2, %swift.type*{{.*}}, %swift.type*{{.*}}, i8** {{.*}}.QueryHandler, i8** {{.*}}.Query, %swift.opaque* noalias nocapture swiftself %3)
301302
// CHECK: [[ALLOC:%.*]] = alloca %T22big_types_corner_cases9BigStructVSg
302303
// CHECK: call swiftcc void {{.*}}(%T22big_types_corner_cases9BigStructVSg* noalias nocapture sret({{.*}}) [[ALLOC]], %swift.opaque* noalias nocapture {{.*}}, %swift.opaque* noalias nocapture {{.*}}, %swift.refcounted* swiftself {{.*}})
303304
// CHECK: ret void
304-
func forceHandle_2<Q: sr8076_Query>(query: Q) -> (Q.Returned, BigStruct?) {
305+
func forceHandle_2<Q: Query>(query: Q) -> (Q.Returned, BigStruct?) {
305306
guard let body = handle_2 as? (Q) -> (Q.Returned, BigStruct?) else {
306307
fatalError("handler \(self) is expected to handle query \(query)")
307308
}
308309
return body(query)
309310
}
310311

311-
// CHECK-LABEL-64: define{{( dllexport)?}}{{( protected)?}} swiftcc { i64, i64 } @"$s22big_types_corner_cases19sr8076_QueryHandlerPAAE13forceHandle_35query8ReturnedQyd___SbAA9BigStructVcSgtqd___tAA0e1_F0Rd__lF"(%swift.opaque* noalias nocapture %0, %swift.opaque* noalias nocapture %1, %swift.type*{{.*}}, %swift.type*{{.*}}, i8** {{.*}}.sr8076_QueryHandler, i8** {{.*}}.sr8076_Query, %swift.opaque* noalias nocapture swiftself %2)
312+
// CHECK-LABEL-64: define{{( dllexport)?}}{{( protected)?}} swiftcc { i64, i64 } @"$s22big_types_corner_cases12QueryHandlerPAAE13forceHandle_35query8ReturnedQyd___SbAA9BigStructVcSgtqd___tAA0E0Rd__lF"(%swift.opaque* noalias nocapture %0, %swift.opaque* noalias nocapture %1, %swift.type*{{.*}}, %swift.type*{{.*}}, i8** {{.*}}.QueryHandler, i8** {{.*}}.Query, %swift.opaque* noalias nocapture swiftself %2)
312313
// CHECK-64: {{.*}} = call swiftcc { i64, i64 } {{.*}}(%swift.opaque* noalias nocapture {{.*}}, %swift.opaque* noalias nocapture {{.*}}, %swift.refcounted* swiftself {{.*}})
313314
// CHECK-64: ret { i64, i64 }
314315

315-
// CHECK-LABEL-32: define{{( dllexport)?}}{{( protected)?}} swiftcc { i32, i32} @"$s22big_types_corner_cases19sr8076_QueryHandlerPAAE13forceHandle_35query8ReturnedQyd___SbAA9BigStructVcSgtqd___tAA0e1_F0Rd__lF"(%swift.opaque* noalias nocapture %0, %swift.opaque* noalias nocapture %1, %swift.type*{{.*}}, %swift.type*{{.*}}, i8** {{.*}}.sr8076_QueryHandler, i8** {{.*}}.sr8076_Query, %swift.opaque* noalias nocapture swiftself %2)
316+
// CHECK-LABEL-32: define{{( dllexport)?}}{{( protected)?}} swiftcc { i32, i32} @"$s22big_types_corner_cases12QueryHandlerPAAE13forceHandle_35query8ReturnedQyd___SbAA9BigStructVcSgtqd___tAA0E0Rd__lF"(%swift.opaque* noalias nocapture %0, %swift.opaque* noalias nocapture %1, %swift.type*{{.*}}, %swift.type*{{.*}}, i8** {{.*}}.QueryHandler, i8** {{.*}}.Query, %swift.opaque* noalias nocapture swiftself %2)
316317
// CHECK-32: {{.*}} = call swiftcc { i32, i32 } {{.*}}(%swift.opaque* noalias nocapture {{.*}}, %swift.opaque* noalias nocapture {{.*}}, %swift.refcounted* swiftself {{.*}})
317318
// CHECK-32: ret { i32, i32 }
318-
func forceHandle_3<Q: sr8076_Query>(query: Q) -> (Q.Returned, sr8076_Filter?) {
319-
guard let body = handle_3 as? (Q) -> (Q.Returned, sr8076_Filter?) else {
319+
func forceHandle_3<Q: Query>(query: Q) -> (Q.Returned, Filter?) {
320+
guard let body = handle_3 as? (Q) -> (Q.Returned, Filter?) else {
320321
fatalError("handler \(self) is expected to handle query \(query)")
321322
}
322323
return body(query)
323324
}
324325

325-
// CHECK-LABEL-64: define{{( dllexport)?}}{{( protected)?}} swiftcc { i64, i64 } @"$s22big_types_corner_cases19sr8076_QueryHandlerPAAE13forceHandle_45query8ReturnedQyd___SbAA9BigStructVcSgtqd___tKAA0e1_F0Rd__lF"(%swift.opaque* noalias nocapture %0, %swift.opaque* noalias nocapture %1, %swift.type*{{.*}}, %swift.type*{{.*}}, i8** {{.*}}.sr8076_QueryHandler, i8** {{.*}}.sr8076_Query, %swift.opaque* noalias nocapture swiftself %2, %swift.error** swifterror %3)
326+
// CHECK-LABEL-64: define{{( dllexport)?}}{{( protected)?}} swiftcc { i64, i64 } @"$s22big_types_corner_cases12QueryHandlerPAAE13forceHandle_45query8ReturnedQyd___SbAA9BigStructVcSgtqd___tKAA0E0Rd__lF"(%swift.opaque* noalias nocapture %0, %swift.opaque* noalias nocapture %1, %swift.type*{{.*}}, %swift.type*{{.*}}, i8** {{.*}}.QueryHandler, i8** {{.*}}.Query, %swift.opaque* noalias nocapture swiftself %2, %swift.error** swifterror %3)
326327
// CHECK-64: {{.*}} = call swiftcc { i64, i64 } {{.*}}(%swift.opaque* noalias nocapture {{.*}}, %swift.opaque* noalias nocapture {{.*}}, %swift.refcounted* swiftself {{.*}}, %swift.error** noalias nocapture swifterror {{.*}})
327328
// CHECK-64: ret { i64, i64 }
328329

329-
// CHECK-LABEL-32: define{{( dllexport)?}}{{( protected)?}} swiftcc { i32, i32} @"$s22big_types_corner_cases19sr8076_QueryHandlerPAAE13forceHandle_45query8ReturnedQyd___SbAA9BigStructVcSgtqd___tKAA0e1_F0Rd__lF"(%swift.opaque* noalias nocapture %0, %swift.opaque* noalias nocapture %1, %swift.type*{{.*}}, %swift.type*{{.*}}, i8** {{.*}}.sr8076_QueryHandler, i8** {{.*}}.sr8076_Query, %swift.opaque* noalias nocapture swiftself %2, %swift.error** swifterror %3)
330+
// CHECK-LABEL-32: define{{( dllexport)?}}{{( protected)?}} swiftcc { i32, i32} @"$s22big_types_corner_cases12QueryHandlerPAAE13forceHandle_45query8ReturnedQyd___SbAA9BigStructVcSgtqd___tKAA0E0Rd__lF"(%swift.opaque* noalias nocapture %0, %swift.opaque* noalias nocapture %1, %swift.type*{{.*}}, %swift.type*{{.*}}, i8** {{.*}}.QueryHandler, i8** {{.*}}.Query, %swift.opaque* noalias nocapture swiftself %2, %swift.error** swifterror %3)
330331
// CHECK-32: {{.*}} = call swiftcc { i32, i32 } {{.*}}(%swift.opaque* noalias nocapture {{.*}}, %swift.opaque* noalias nocapture {{.*}}, %swift.refcounted* swiftself {{.*}}, %swift.error** noalias nocapture {{.*}})
331332
// CHECK-32: ret { i32, i32 }
332-
func forceHandle_4<Q: sr8076_Query>(query: Q) throws -> (Q.Returned, sr8076_Filter?) {
333-
guard let body = handle_4 as? (Q) throws -> (Q.Returned, sr8076_Filter?) else {
333+
func forceHandle_4<Q: Query>(query: Q) throws -> (Q.Returned, Filter?) {
334+
guard let body = handle_4 as? (Q) throws -> (Q.Returned, Filter?) else {
334335
fatalError("handler \(self) is expected to handle query \(query)")
335336
}
336337
return try body(query)

test/IRGen/conformance_access_path.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
// RUN: %FileCheck %s < %t.ll
33

44

5-
// SR-6200: canonicalizing a conformance access path that was built
6-
// without the requirement signature.
5+
// https://github.com/apple/swift/issues/48752
6+
// Canonicalizing a conformance access path that was built without the
7+
// requirement signature.
8+
79
public struct Valid<V> {}
810

911
extension Valid where V: ValidationSuite {}

test/IRGen/debug_scope.sil

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ sil_stage canonical
44
import Builtin
55
import Swift
66

7-
// SR-14856: IRGen couldn't handle `SILLocation` with `FilenameAndLocationKind`
8-
// storage kind.
7+
// https://github.com/apple/swift/issues/57203
8+
// IRGen couldn't handle 'SILLocation' with 'FilenameAndLocationKind'.
99

1010
sil_scope 2 { loc "the_file.swift":2:6 parent @foo : $@convention(thin) () -> () }
1111
sil_scope 3 { loc "the_file.swift":3:5 parent 2 }

test/IRGen/empty_array.sil

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
// REQUIRES: CODEGENERATOR=X86
99
// REQUIRES: CODEGENERATOR=ARM
1010

11-
// FIXME: SR-3602 test is failing after being unintentionally disabled for a while
11+
// FIXME: https://github.com/apple/swift/issues/46187 test is failing after
12+
// being unintentionally disabled for a while.
1213
// REQUIRES: SR3602
1314

1415
sil_stage canonical

test/IRGen/extension_type_metadata_linking.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ extension NSNumber {
4949
public struct Struct {}
5050
}
5151

52-
// SR-9397: not emitting metadata for NSComparisonResult
52+
// https://github.com/apple/swift/issues/51863
53+
// Not emitting metadata for 'NSComparisonResult'
54+
5355
protocol CommandTypes {
5456
associatedtype Result
5557
associatedtype Message

test/IRGen/lowered_optional_self_metadata.sil

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ public protocol Protocol {
88
static func foo(_: Self?)
99
}
1010

11-
// SR-3021: Ensure we pass the Self type metadata for Optional methods using the
12-
// formal Optional type and not a lowered SIL type.
11+
// https://github.com/apple/swift/issues/45611
12+
// Ensure we pass the 'Self' type metadata for 'Optional' methods using the
13+
// formal 'Optional' type and not a lowered SIL type.
1314

1415
// CHECK-LABEL: @_TMaGSqFT_T__
1516

@@ -23,7 +24,8 @@ entry(%x : $*Optional<@callee_guaranteed @substituted <T> () -> @out T for <()>>
2324
return undef : $()
2425
}
2526

26-
// SR-3548: Ensure we correctly emit "metadata for layout" for lowered Optional types.
27+
// https://github.com/apple/swift/issues/46136
28+
// Ensure we correctly emit metadata for layout for lowered 'Optional' types.
2729

2830
sil @alloc_stack_optional_with_generic : $@convention(thin) <T> () -> () {
2931
%a = alloc_stack $*Optional<(T, @convention(thin) () -> ())>

test/IRGen/objc_class_empty_fields.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %target-swift-frontend -primary-file %s -enable-objc-interop -emit-ir | %FileCheck %s --check-prefix=CHECK-%target-ptrsize
22

3-
// SR-1055
3+
// https://github.com/apple/swift/issues/43667
44

55
// CHECK-64: @_DATA__TtC23objc_class_empty_fields14OneEnumWrapper = internal constant { {{.*}}* } { i32 {{[0-9]+}}, i32 16, i32 24
66
// CHECK-32: @_DATA__TtC23objc_class_empty_fields14OneEnumWrapper = internal constant { {{.*}}* } { i32 {{[0-9]+}}, i32 8, i32 12

test/IRGen/objc_protocols.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ func gallop<T : Vanner>(_ t: Stirrup<T>) {
212212
canter(t)
213213
}
214214

215-
// SR-7130
215+
// https://github.com/apple/swift/issues/49678
216216
func triggerDoubleInheritedFunging() -> AnyObject {
217217
return NSDoubleInheritedFunging.self as AnyObject
218218
}

test/IRGen/partial_apply.sil

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,9 @@ bb0(%0 : $Int):
454454

455455
struct ComplexBoundedType<T: P2> {}
456456

457-
// SR-901: Ensure that a partial_apply which captures bound generic type
458-
// metadata doesn't crash when restoring the generic context.
457+
// https://github.com/apple/swift/issues/43513
458+
// Ensure that a 'partial_apply' which captures bound generic type metadata
459+
// doesn't crash when restoring the generic context.
459460

460461
sil hidden_external @generic_function : $@convention(thin) <T> () -> ()
461462
sil @partial_apply_with_generic_type : $@convention(thin) <U: P2> () -> () {

test/IRGen/pic.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// <rdar://problem/15358345> Check that we always use PIC relocations on all
22
// platforms.
33

4-
// SR-12194
4+
// https://github.com/apple/swift/issues/54619
55
// XFAIL: OS=linux-android, CPU=aarch64
66
// UNSUPPORTED: OS=linux-gnu
77

test/IRGen/unmanaged_objc_throw_func.swift

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44

55
import Foundation
66

7-
@objc protocol SR_9035_P {
7+
// https://github.com/apple/swift/issues/51538
8+
9+
@objc protocol P {
810
func returnUnmanagedCFArray() throws -> Unmanaged<CFArray>
911
}
1012

11-
// CHECK-LABEL: define hidden swiftcc %TSo10CFArrayRefa* @"$s25unmanaged_objc_throw_func9SR_9035_CC22returnUnmanagedCFArrays0G0VySo0H3RefaGyKF"
12-
@objc class SR_9035_C: NSObject, SR_9035_P {
13+
// CHECK-LABEL: define hidden swiftcc %TSo10CFArrayRefa* @"$s25unmanaged_objc_throw_func1CC22returnUnmanagedCFArrays0F0VySo0G3RefaGyKF"
14+
@objc class C: NSObject, P {
1315
func returnUnmanagedCFArray() throws -> Unmanaged<CFArray> {
1416
// CHECK: %[[T0:.+]] = call swiftcc { %swift.bridge*, i8* } @"$ss27_allocateUninitializedArrayySayxG_BptBwlF"(i{{32|64}} 1, %swift.type* @"$sSiN")
1517
// CHECK-NEXT: %[[T1:.+]] = extractvalue { %swift.bridge*, i8* } %[[T0]], 0
@@ -29,7 +31,7 @@ import Foundation
2931
}
3032
}
3133

32-
// CHECK: %[[T0:.+]] = call swiftcc %TSo10CFArrayRefa* @"$s25unmanaged_objc_throw_func9SR_9035_CC22returnUnmanagedCFArrays0G0VySo0H3RefaGyKF"
34+
// CHECK: %[[T0:.+]] = call swiftcc %TSo10CFArrayRefa* @"$s25unmanaged_objc_throw_func1CC22returnUnmanagedCFArrays0F0VySo0G3RefaGyKF"
3335
// CHECK-NEXT: %[[T2:.+]] = load %swift.error*, %swift.error** %swifterror, align {{[0-9]+}}
3436
// CHECK-NEXT: %[[T3:.+]] = icmp ne %swift.error* %[[T2]], null
3537
// CHECK-NEXT: br i1 %[[T3]], label %[[L1:.+]], label %[[L2:.+]]
@@ -66,7 +68,7 @@ import Foundation
6668

6769
// CHECK: [[L3]]: ; preds = %[[L2]], %[[L7]]
6870
// CHECK-NEXT: %[[T12:.+]] = phi i{{32|64}} [ 0, %[[L7]] ], [ %[[T5]], %[[L2]] ]
69-
// CHECK-NEXT: %[[T13:.+]] = bitcast %T25unmanaged_objc_throw_func9SR_9035_CC* %{{.+}} to i8*
71+
// CHECK-NEXT: %[[T13:.+]] = bitcast %T25unmanaged_objc_throw_func1CC* %{{.+}} to i8*
7072
// CHECK-NEXT: call void @llvm.objc.release(i8* %[[T13]])
7173
// CHECK-NEXT: %[[T14:.+]] = inttoptr i{{32|64}} %[[T12]] to %struct.__CFArray*
7274
// CHECK-NEXT: ret %struct.__CFArray* %[[T14]]

test/Interpreter/SDK/objc_swift_getObjectType.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ extension P {
2424
}
2525
}
2626

27-
// SR-4363
28-
// Test several paths through swift_getObjectType()
27+
// https://github.com/apple/swift/issues/46942
28+
// Test several paths through 'swift_getObjectType()'.
2929

3030
// instance of a Swift class that conforms to P
3131
class O: NSObject, P { }

test/Interpreter/SR-10600.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
// REQUIRES: executable_test
44

5+
// https://github.com/apple/swift/issues/53000
6+
57
public class BaseView { }
68
public class GenericView<T>: BaseView { }
79
public class FinalView: GenericView<ContentForTheView> { }

test/Interpreter/class_resilience.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,9 @@ ResilientClassTestSuite.test("ResilientThenEmpty") {
324324
expectEqual(c.resilient.i, 17)
325325
}
326326

327-
// This test triggers SR-815 (rdar://problem/25318716) on macOS 10.9 and iOS 7.
328-
// Disable it for now when testing on those versions.
327+
// This test triggers https://github.com/apple/swift/issues/43427
328+
// (rdar://problem/25318716) on macOS 10.9 and iOS 7. Disable it for now when
329+
// testing on those versions.
329330
if #available(macOS 10.10, iOS 8, *) {
330331
runAllTests()
331332
} else {

test/Interpreter/classes.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ func makeOne<T : Makeable>(_: T.Type) -> T {
208208

209209
makeOne(Child.self).doSomething() // CHECK: Heaven!
210210

211-
// https://bugs.swift.org/browse/SR-3840
211+
// https://github.com/apple/swift/issues/46425
212212

213213
class BaseProperty {
214214
var value: Int {

test/Interpreter/enum.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,8 @@ presentEitherOr(EitherOr<(), String>.Right("foo")) // CHECK-NEXT: Right(foo)
554554
// CHECK-NEXT: Right(foo)
555555
presentEitherOrsOf(t: (), u: "foo")
556556

557-
// SR-5148
557+
// https://github.com/apple/swift/issues/47724
558+
558559
enum Payload {
559560
case email
560561
}

test/Interpreter/generic_casts.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,15 +308,17 @@ print(#line, nongenericAnyIsPAndPCSubType(type: PS.self)) // CHECK: [[@LINE]] fa
308308
print(#line, genericAnyIs(type: PS.self, to: (P & PCSub).self, expected: false)) // CHECK: [[@LINE]] false
309309
print(#line, nongenericAnyIsPAndPCSubType(type: PE.self)) // CHECK: [[@LINE]] false
310310
print(#line, genericAnyIs(type: PE.self, to: (P & PCSub).self, expected: false)) // CHECK: [[@LINE]] false
311-
//print(#line, nongenericAnyIsPAndPCSubType(type: PC.self)) // CHECK-SR-11565: [[@LINE]] false -- FIXME: reenable this when SR-11565 is fixed
311+
// FIXME: reenable this when https://github.com/apple/swift/issues/53970 is fixed
312+
//print(#line, nongenericAnyIsPAndPCSubType(type: PC.self)) // C HECK: [[@LINE]] false
312313
print(#line, genericAnyIs(type: PC.self, to: (P & PCSub).self, expected: false)) // CHECK: [[@LINE]] false
313314
print(#line, nongenericAnyIsPAndPCSubType(type: PCSub.self)) // CHECK: [[@LINE]] true
314315
print(#line, genericAnyIs(type: PCSub.self, to: (P & PCSub).self, expected: false)) // CHECK: [[@LINE]] false
315316
print(#line, nongenericAnyAsConditionalPAndPCSubType(type: PS.self)) // CHECK: [[@LINE]] false
316317
print(#line, genericAnyAsConditional(type: PS.self, to: (P & PCSub).self, expected: false)) // CHECK: [[@LINE]] false
317318
print(#line, nongenericAnyAsConditionalPAndPCSubType(type: PE.self)) // CHECK: [[@LINE]] false
318319
print(#line, genericAnyAsConditional(type: PE.self, to: (P & PCSub).self, expected: false)) // CHECK: [[@LINE]] false
319-
// print(#line, nongenericAnyAsConditionalPAndPCSubType(type: PC.self)) // CHECK-SR-11565: [[@LINE]] false -- FIXME: reenable this when SR-11565 is fixed
320+
// FIXME: reenable this when https://github.com/apple/swift/issues/53970 is fixed
321+
// print(#line, nongenericAnyAsConditionalPAndPCSubType(type: PC.self)) // C HECK: [[@LINE]] false
320322
print(#line, genericAnyAsConditional(type: PC.self, to: (P & PCSub).self, expected: false)) // CHECK: [[@LINE]] false
321323
print(#line, nongenericAnyAsConditionalPAndPCSubType(type: PCSub.self)) // CHECK: [[@LINE]] true
322324
print(#line, genericAnyAsConditional(type: PCSub.self, to: (P & PCSub).self, expected: false)) // CHECK: [[@LINE]] false

0 commit comments

Comments
 (0)