Skip to content

Commit 1b2e4f9

Browse files
committed
Gardening: Migrate test suite to GH issues: AutoDiff/compiler_crashers
1 parent 7d40b28 commit 1b2e4f9

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

test/AutoDiff/compiler_crashers/sr14223-apply-opened-opened-existential-argument.swift renamed to test/AutoDiff/compiler_crashers/issue-54722-apply-opened-opened-existential-argument.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// RUN: not --crash %target-swift-frontend -disable-availability-checking -emit-sil -verify %s
22

3-
// SR-14223: Differentiation transform crash for `apply` with opened existential arguments.
3+
// https://github.com/apple/swift/issues/54722
4+
// Differentiation transform crash for `apply` with opened existential arguments
45

56
import _Differentiation
67

test/AutoDiff/compiler_crashers/rdar87429620-differentiable-curry-thunk-reqmachine.swift

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,28 @@
11
// RUN: %target-swift-frontend -emit-sil -verify %s
22
// XFAIL: *
33

4-
// rdar://87429620 (Differentiable curry thunk RequirementMachine error)
4+
// rdar://87429620
5+
// https://github.com/apple/swift/issues/54819
6+
// Differentiable curry thunk RequirementMachine error
57

68
import _Differentiation
79

8-
public struct SR_14228_Struct<Scalar> {
10+
public struct Struct<Scalar> {
911
var x: Scalar
1012
}
1113

12-
extension SR_14228_Struct: Differentiable where Scalar: Differentiable {
14+
extension Struct: Differentiable where Scalar: Differentiable {
1315
@differentiable(reverse)
1416
public static func id(x: Self) -> Self {
1517
return x
1618
}
1719
}
1820

1921
@differentiable(reverse, wrt: x)
20-
public func SR_14228<Scalar: Differentiable>(
21-
_ x: SR_14228_Struct<Scalar>,
22-
reduction: @differentiable(reverse) (SR_14228_Struct<Scalar>) -> SR_14228_Struct<Scalar> = SR_14228_Struct.id
23-
) -> SR_14228_Struct<Scalar> {
22+
public func f<Scalar: Differentiable>(
23+
_ x: Struct<Scalar>,
24+
reduction: @differentiable(reverse) (Struct<Scalar>) -> Struct<Scalar> = Struct.id
25+
) -> Struct<Scalar> {
2426
reduction(x)
2527
}
2628

0 commit comments

Comments
 (0)