Skip to content

Commit 4591933

Browse files
committed
Gardening: Migrate test suite to GH issues: multifile
1 parent 6da51d2 commit 4591933

7 files changed

+17
-6
lines changed

test/multifile/property-wrappers-sr10933.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// RUN: %target-swift-frontend -typecheck -primary-file %s %S/Inputs/sr10933a.swift %S/Inputs/sr10933b.swift
22

3-
// SR-10933: crash involving multiple files
3+
// https://github.com/apple/swift/issues/53324
4+
// Crash involving multiple files
5+
46
class Holder {
57
@IntWrapper(defaultValue: 100) var int: Int
68
}

test/multifile/property-wrappers-sr11458.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// RUN: %target-swift-frontend -typecheck -primary-file %s %S/Inputs/sr11458.swift
22

3-
// SR-11458: crash involving subscript in other file
3+
// https://github.com/apple/swift/issues/53859
4+
// Crash involving subscript in other file
5+
46
class MyOtherType<T: Equatable>: Observed {
57
@Observable var x: T
68

test/multifile/property-wrappers-sr12429.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,7 @@
66

77
// REQUIRES: executable_test
88

9+
// https://github.com/apple/swift/issues/54868
10+
911
let object = MyClass()
1012
object.property = "value"

test/multifile/protocol-conformance-member.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
// CHECK: Name: {{_?}}$s4Test10CoolStructV10coolFactorSdvg
66

7-
// SR-156: Make sure we synthesize getters for members used as protocol
8-
// witnesses. Check that we link correctly; we don't care which file
9-
// synthesizes it.
7+
// https://github.com/apple/swift/issues/42778
8+
// Make sure we synthesize getters for members used as protocol witnesses.
9+
// Check that we link correctly; we don't care which file synthesizes it.
1010

1111
protocol CoolStructProtocol {
1212
var coolFactor: Double { get }
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// RUN: %target-swift-frontend -emit-ir -o - -primary-file %s %S/Inputs/sr-285-other.swift -module-name main
22

3-
// SR-285: Crash in IR generation due to missing conformance.
3+
// https://github.com/apple/swift/issues/42907
4+
// Crash in IR generation due to missing conformance
45
func definedInMain() { print(MemoryLayout<FourFloats>.size) }
56

67
let d = definedInOther()
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %target-swift-frontend -emit-sil -module-name main -primary-file %s %S/Inputs/protocol-conformance-sr11018-other.swift -verify
22
// RUN: %target-swift-frontend -emit-sil -module-name main %s -primary-file %S/Inputs/protocol-conformance-sr11018-other.swift
33

4+
// https://github.com/apple/swift/issues/53408
5+
46
func reproducer() -> Float { return Struct().func1(1.0) }
57
// expected-error@-1 {{cannot convert value of type 'Double' to expected argument type 'Struct.Input'}}

test/multifile/protocol-conformance-sr6839.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// RUN: %target-swift-frontend -emit-sil -module-name main -primary-file %s %S/Inputs/protocol-conformance-sr6839-other.swift | %FileCheck -check-prefix CHECK-FIRST %s
22
// RUN: %target-swift-frontend -emit-sil -module-name main %s -primary-file %S/Inputs/protocol-conformance-sr6839-other.swift | %FileCheck -check-prefix CHECK-SECOND %s
33

4+
// https://github.com/apple/swift/issues/49388
5+
46
// We need to consistently pick where the witness table for _PositionRelation :
57
// RawRepresentable goes.
68
// CHECK-FIRST: sil_witness_table hidden _PositionRelation: RawRepresentable

0 commit comments

Comments
 (0)