Skip to content

Gardening: Migrate test suite to GH issues p. 16 #60894

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion test/IRGen/associated_type_witness.swift
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ struct UsesVoid : HasSimpleAssoc {
typealias Assoc = ()
}

// SR-11642: Failure to canonicalize type in associated type witness.
// https://github.com/apple/swift/issues/54052
// Failure to canonicalize type in associated type witness

struct Validator<T> {
let validatorFailureType: Any.Type
}
Expand Down
5 changes: 3 additions & 2 deletions test/IRGen/async/partial_apply.sil
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,9 @@ bb0(%0 : $Int):
// CHECK-LABEL: define internal swift{{(tail)?}}cc void @"$s24complex_generic_functionTA"(
struct ComplexBoundedType<T: P2> {}

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

sil hidden @generic_function : $@async @convention(thin) <T> () -> () {
%0 = builtin "int_trap"() : $Never
Expand Down
51 changes: 26 additions & 25 deletions test/IRGen/big_types_corner_cases.swift
Original file line number Diff line number Diff line change
Expand Up @@ -261,76 +261,77 @@ class ClassWithLoadableStructWithBiggerString {
}

//===----------------------------------------------------------------------===//
// SR-8076
// https://github.com/apple/swift/issues/50609
//===----------------------------------------------------------------------===//
public typealias sr8076_Filter = (BigStruct) -> Bool

public protocol sr8076_Query {
public typealias Filter = (BigStruct) -> Bool

public protocol Query {
associatedtype Returned
}

public protocol sr8076_ProtoQueryHandler {
func forceHandle_1<Q: sr8076_Query>(query: Q) -> Void
func forceHandle_2<Q: sr8076_Query>(query: Q) -> (Q.Returned, BigStruct?)
func forceHandle_3<Q: sr8076_Query>(query: Q) -> (Q.Returned, sr8076_Filter?)
func forceHandle_4<Q: sr8076_Query>(query: Q) throws -> (Q.Returned, sr8076_Filter?)
public protocol ProtoQueryHandler {
func forceHandle_1<Q: Query>(query: Q) -> Void
func forceHandle_2<Q: Query>(query: Q) -> (Q.Returned, BigStruct?)
func forceHandle_3<Q: Query>(query: Q) -> (Q.Returned, Filter?)
func forceHandle_4<Q: Query>(query: Q) throws -> (Q.Returned, Filter?)
}

public protocol sr8076_QueryHandler: sr8076_ProtoQueryHandler {
associatedtype Handled: sr8076_Query
public protocol QueryHandler: ProtoQueryHandler {
associatedtype Handled: Query
func handle_1(query: Handled) -> Void
func handle_2(query: Handled) -> (Handled.Returned, BigStruct?)
func handle_3(query: Handled) -> (Handled.Returned, sr8076_Filter?)
func handle_4(query: Handled) throws -> (Handled.Returned, sr8076_Filter?)
func handle_3(query: Handled) -> (Handled.Returned, Filter?)
func handle_4(query: Handled) throws -> (Handled.Returned, Filter?)
}


public extension sr8076_QueryHandler {
public extension QueryHandler {

// 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)
// 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)
// CHECK: call swiftcc void {{.*}}(%swift.opaque* noalias nocapture {{.*}}, %swift.refcounted* swiftself {{.*}})
// CHECK: ret void
func forceHandle_1<Q: sr8076_Query>(query: Q) -> Void {
func forceHandle_1<Q: Query>(query: Q) -> Void {
guard let body = handle_1 as? (Q) -> Void else {
fatalError("handler \(self) is expected to handle query \(query)")
}
body(query)
}

// 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)
// 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)
Comment on lines -300 to +301
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto these CHECK-LABEL directives.

// CHECK: [[ALLOC:%.*]] = alloca %T22big_types_corner_cases9BigStructVSg
// CHECK: call swiftcc void {{.*}}(%T22big_types_corner_cases9BigStructVSg* noalias nocapture sret({{.*}}) [[ALLOC]], %swift.opaque* noalias nocapture {{.*}}, %swift.opaque* noalias nocapture {{.*}}, %swift.refcounted* swiftself {{.*}})
// CHECK: ret void
func forceHandle_2<Q: sr8076_Query>(query: Q) -> (Q.Returned, BigStruct?) {
func forceHandle_2<Q: Query>(query: Q) -> (Q.Returned, BigStruct?) {
guard let body = handle_2 as? (Q) -> (Q.Returned, BigStruct?) else {
fatalError("handler \(self) is expected to handle query \(query)")
}
return body(query)
}

// 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)
// 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)
// CHECK-64: {{.*}} = call swiftcc { i64, i64 } {{.*}}(%swift.opaque* noalias nocapture {{.*}}, %swift.opaque* noalias nocapture {{.*}}, %swift.refcounted* swiftself {{.*}})
// CHECK-64: ret { i64, i64 }

// 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)
// 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)
// CHECK-32: {{.*}} = call swiftcc { i32, i32 } {{.*}}(%swift.opaque* noalias nocapture {{.*}}, %swift.opaque* noalias nocapture {{.*}}, %swift.refcounted* swiftself {{.*}})
// CHECK-32: ret { i32, i32 }
func forceHandle_3<Q: sr8076_Query>(query: Q) -> (Q.Returned, sr8076_Filter?) {
guard let body = handle_3 as? (Q) -> (Q.Returned, sr8076_Filter?) else {
func forceHandle_3<Q: Query>(query: Q) -> (Q.Returned, Filter?) {
guard let body = handle_3 as? (Q) -> (Q.Returned, Filter?) else {
fatalError("handler \(self) is expected to handle query \(query)")
}
return body(query)
}

// 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)
// 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)
// CHECK-64: {{.*}} = call swiftcc { i64, i64 } {{.*}}(%swift.opaque* noalias nocapture {{.*}}, %swift.opaque* noalias nocapture {{.*}}, %swift.refcounted* swiftself {{.*}}, %swift.error** noalias nocapture swifterror {{.*}})
// CHECK-64: ret { i64, i64 }

// 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)
// 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)
// CHECK-32: {{.*}} = call swiftcc { i32, i32 } {{.*}}(%swift.opaque* noalias nocapture {{.*}}, %swift.opaque* noalias nocapture {{.*}}, %swift.refcounted* swiftself {{.*}}, %swift.error** noalias nocapture {{.*}})
// CHECK-32: ret { i32, i32 }
func forceHandle_4<Q: sr8076_Query>(query: Q) throws -> (Q.Returned, sr8076_Filter?) {
guard let body = handle_4 as? (Q) throws -> (Q.Returned, sr8076_Filter?) else {
func forceHandle_4<Q: Query>(query: Q) throws -> (Q.Returned, Filter?) {
guard let body = handle_4 as? (Q) throws -> (Q.Returned, Filter?) else {
fatalError("handler \(self) is expected to handle query \(query)")
}
return try body(query)
Expand Down
6 changes: 4 additions & 2 deletions test/IRGen/conformance_access_path.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
// RUN: %FileCheck %s < %t.ll


// SR-6200: canonicalizing a conformance access path that was built
// without the requirement signature.
// https://github.com/apple/swift/issues/48752
// Canonicalizing a conformance access path that was built without the
// requirement signature.

public struct Valid<V> {}

extension Valid where V: ValidationSuite {}
Expand Down
4 changes: 2 additions & 2 deletions test/IRGen/debug_scope.sil
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ sil_stage canonical
import Builtin
import Swift

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

sil_scope 2 { loc "the_file.swift":2:6 parent @foo : $@convention(thin) () -> () }
sil_scope 3 { loc "the_file.swift":3:5 parent 2 }
Expand Down
3 changes: 2 additions & 1 deletion test/IRGen/empty_array.sil
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
// REQUIRES: CODEGENERATOR=X86
// REQUIRES: CODEGENERATOR=ARM

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

sil_stage canonical
Expand Down
4 changes: 3 additions & 1 deletion test/IRGen/extension_type_metadata_linking.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ extension NSNumber {
public struct Struct {}
}

// SR-9397: not emitting metadata for NSComparisonResult
// https://github.com/apple/swift/issues/51863
// Not emitting metadata for 'NSComparisonResult'

protocol CommandTypes {
associatedtype Result
associatedtype Message
Expand Down
8 changes: 5 additions & 3 deletions test/IRGen/lowered_optional_self_metadata.sil
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ public protocol Protocol {
static func foo(_: Self?)
}

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

// CHECK-LABEL: @_TMaGSqFT_T__

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

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

sil @alloc_stack_optional_with_generic : $@convention(thin) <T> () -> () {
%a = alloc_stack $*Optional<(T, @convention(thin) () -> ())>
Expand Down
2 changes: 1 addition & 1 deletion test/IRGen/objc_class_empty_fields.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// RUN: %target-swift-frontend -primary-file %s -enable-objc-interop -emit-ir | %FileCheck %s --check-prefix=CHECK-%target-ptrsize

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

// CHECK-64: @_DATA__TtC23objc_class_empty_fields14OneEnumWrapper = internal constant { {{.*}}* } { i32 {{[0-9]+}}, i32 16, i32 24
// CHECK-32: @_DATA__TtC23objc_class_empty_fields14OneEnumWrapper = internal constant { {{.*}}* } { i32 {{[0-9]+}}, i32 8, i32 12
Expand Down
2 changes: 1 addition & 1 deletion test/IRGen/objc_protocols.swift
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ func gallop<T : Vanner>(_ t: Stirrup<T>) {
canter(t)
}

// SR-7130
// https://github.com/apple/swift/issues/49678
func triggerDoubleInheritedFunging() -> AnyObject {
return NSDoubleInheritedFunging.self as AnyObject
}
5 changes: 3 additions & 2 deletions test/IRGen/partial_apply.sil
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,9 @@ bb0(%0 : $Int):

struct ComplexBoundedType<T: P2> {}

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

sil hidden_external @generic_function : $@convention(thin) <T> () -> ()
sil @partial_apply_with_generic_type : $@convention(thin) <U: P2> () -> () {
Expand Down
2 changes: 1 addition & 1 deletion test/IRGen/pic.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// <rdar://problem/15358345> Check that we always use PIC relocations on all
// platforms.

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

Expand Down
12 changes: 7 additions & 5 deletions test/IRGen/unmanaged_objc_throw_func.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@

import Foundation

@objc protocol SR_9035_P {
// https://github.com/apple/swift/issues/51538

@objc protocol P {
func returnUnmanagedCFArray() throws -> Unmanaged<CFArray>
}

// CHECK-LABEL: define hidden swiftcc %TSo10CFArrayRefa* @"$s25unmanaged_objc_throw_func9SR_9035_CC22returnUnmanagedCFArrays0G0VySo0H3RefaGyKF"
@objc class SR_9035_C: NSObject, SR_9035_P {
// CHECK-LABEL: define hidden swiftcc %TSo10CFArrayRefa* @"$s25unmanaged_objc_throw_func1CC22returnUnmanagedCFArrays0F0VySo0G3RefaGyKF"
@objc class C: NSObject, P {
func returnUnmanagedCFArray() throws -> Unmanaged<CFArray> {
Comment on lines -11 to 15
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The slight divergence in the Unmanaged and CFArray result portions of the mangled signature, s0G0V → s0F0V and So0H3Refa → So0G3Refa respectively, which exercise word substitutions, are expected and due to C having one less word—none, in fact—than the old SR_9035_C.

// CHECK: %[[T0:.+]] = call swiftcc { %swift.bridge*, i8* } @"$ss27_allocateUninitializedArrayySayxG_BptBwlF"(i{{32|64}} 1, %swift.type* @"$sSiN")
// CHECK-NEXT: %[[T1:.+]] = extractvalue { %swift.bridge*, i8* } %[[T0]], 0
Expand All @@ -29,7 +31,7 @@ import Foundation
}
}

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

// CHECK: [[L3]]: ; preds = %[[L2]], %[[L7]]
// CHECK-NEXT: %[[T12:.+]] = phi i{{32|64}} [ 0, %[[L7]] ], [ %[[T5]], %[[L2]] ]
// CHECK-NEXT: %[[T13:.+]] = bitcast %T25unmanaged_objc_throw_func9SR_9035_CC* %{{.+}} to i8*
// CHECK-NEXT: %[[T13:.+]] = bitcast %T25unmanaged_objc_throw_func1CC* %{{.+}} to i8*
// CHECK-NEXT: call void @llvm.objc.release(i8* %[[T13]])
// CHECK-NEXT: %[[T14:.+]] = inttoptr i{{32|64}} %[[T12]] to %struct.__CFArray*
// CHECK-NEXT: ret %struct.__CFArray* %[[T14]]
4 changes: 2 additions & 2 deletions test/Interpreter/SDK/objc_swift_getObjectType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ extension P {
}
}

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

// instance of a Swift class that conforms to P
class O: NSObject, P { }
Expand Down
2 changes: 2 additions & 0 deletions test/Interpreter/SR-10600.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

// REQUIRES: executable_test

// https://github.com/apple/swift/issues/53000

public class BaseView { }
public class GenericView<T>: BaseView { }
public class FinalView: GenericView<ContentForTheView> { }
Expand Down
5 changes: 3 additions & 2 deletions test/Interpreter/class_resilience.swift
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,9 @@ ResilientClassTestSuite.test("ResilientThenEmpty") {
expectEqual(c.resilient.i, 17)
}

// This test triggers SR-815 (rdar://problem/25318716) on macOS 10.9 and iOS 7.
// Disable it for now when testing on those versions.
// This test triggers https://github.com/apple/swift/issues/43427
// (rdar://problem/25318716) on macOS 10.9 and iOS 7. Disable it for now when
// testing on those versions.
if #available(macOS 10.10, iOS 8, *) {
runAllTests()
} else {
Expand Down
2 changes: 1 addition & 1 deletion test/Interpreter/classes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func makeOne<T : Makeable>(_: T.Type) -> T {

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

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

class BaseProperty {
var value: Int {
Expand Down
3 changes: 2 additions & 1 deletion test/Interpreter/enum.swift
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,8 @@ presentEitherOr(EitherOr<(), String>.Right("foo")) // CHECK-NEXT: Right(foo)
// CHECK-NEXT: Right(foo)
presentEitherOrsOf(t: (), u: "foo")

// SR-5148
// https://github.com/apple/swift/issues/47724

enum Payload {
case email
}
Expand Down
6 changes: 4 additions & 2 deletions test/Interpreter/generic_casts.swift
Original file line number Diff line number Diff line change
Expand Up @@ -308,15 +308,17 @@ print(#line, nongenericAnyIsPAndPCSubType(type: PS.self)) // CHECK: [[@LINE]] fa
print(#line, genericAnyIs(type: PS.self, to: (P & PCSub).self, expected: false)) // CHECK: [[@LINE]] false
print(#line, nongenericAnyIsPAndPCSubType(type: PE.self)) // CHECK: [[@LINE]] false
print(#line, genericAnyIs(type: PE.self, to: (P & PCSub).self, expected: false)) // CHECK: [[@LINE]] false
//print(#line, nongenericAnyIsPAndPCSubType(type: PC.self)) // CHECK-SR-11565: [[@LINE]] false -- FIXME: reenable this when SR-11565 is fixed
// FIXME: reenable this when https://github.com/apple/swift/issues/53970 is fixed
//print(#line, nongenericAnyIsPAndPCSubType(type: PC.self)) // C HECK: [[@LINE]] false
print(#line, genericAnyIs(type: PC.self, to: (P & PCSub).self, expected: false)) // CHECK: [[@LINE]] false
print(#line, nongenericAnyIsPAndPCSubType(type: PCSub.self)) // CHECK: [[@LINE]] true
print(#line, genericAnyIs(type: PCSub.self, to: (P & PCSub).self, expected: false)) // CHECK: [[@LINE]] false
print(#line, nongenericAnyAsConditionalPAndPCSubType(type: PS.self)) // CHECK: [[@LINE]] false
print(#line, genericAnyAsConditional(type: PS.self, to: (P & PCSub).self, expected: false)) // CHECK: [[@LINE]] false
print(#line, nongenericAnyAsConditionalPAndPCSubType(type: PE.self)) // CHECK: [[@LINE]] false
print(#line, genericAnyAsConditional(type: PE.self, to: (P & PCSub).self, expected: false)) // CHECK: [[@LINE]] false
// print(#line, nongenericAnyAsConditionalPAndPCSubType(type: PC.self)) // CHECK-SR-11565: [[@LINE]] false -- FIXME: reenable this when SR-11565 is fixed
// FIXME: reenable this when https://github.com/apple/swift/issues/53970 is fixed
// print(#line, nongenericAnyAsConditionalPAndPCSubType(type: PC.self)) // C HECK: [[@LINE]] false
print(#line, genericAnyAsConditional(type: PC.self, to: (P & PCSub).self, expected: false)) // CHECK: [[@LINE]] false
print(#line, nongenericAnyAsConditionalPAndPCSubType(type: PCSub.self)) // CHECK: [[@LINE]] true
print(#line, genericAnyAsConditional(type: PCSub.self, to: (P & PCSub).self, expected: false)) // CHECK: [[@LINE]] false
Expand Down
Loading