Skip to content

Commit 382793c

Browse files
authored
Merge pull request swiftlang#35417 from compnerd/lambda-x-14042
test: explicitly reference SR (NFC)
2 parents b2d59b3 + edad681 commit 382793c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/AutoDiff/validation-test/derivative_registration.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ DerivativeRegistrationTests.testWithLeakChecking("DerivativeGenericSignature") {
217217
expectEqual(1000, dx)
218218
}
219219

220-
#if REQUIRES_SRxxxx
220+
#if REQUIRES_SR14042
221221
// When non-canonicalized generic signatures are used to compare derivative configurations, the
222222
// `@differentiable` and `@derivative` attributes create separate derivatives, and we get a
223223
// duplicate symbol error in TBDGen.

test/AutoDiff/validation-test/reabstraction.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ extension Float: HasFloat {
6262
init(float: Float) { self = float }
6363
}
6464

65-
#if REQUIRES_SRxxxx
65+
#if REQUIRES_SR14042
6666
ReabstractionE2ETests.test("diff param generic => concrete") {
6767
func inner<T: HasFloat>(x: T) -> Float {
6868
7 * x.float * x.float
@@ -82,7 +82,7 @@ ReabstractionE2ETests.test("nondiff param generic => concrete") {
8282
expectEqual(Float(7 * 2 * 3), gradient(at: 3) { transformed($0, 10) })
8383
}
8484

85-
#if REQUIRES_SRxxxx
85+
#if REQUIRES_SR14042
8686
ReabstractionE2ETests.test("diff param and nondiff param generic => concrete") {
8787
func inner<T: HasFloat>(x: T, y: T) -> Float {
8888
7 * x.float * x.float + y.float
@@ -93,7 +93,7 @@ ReabstractionE2ETests.test("diff param and nondiff param generic => concrete") {
9393
}
9494
#endif
9595

96-
#if REQUIRES_SRxxxx
96+
#if REQUIRES_SR14042
9797
ReabstractionE2ETests.test("result generic => concrete") {
9898
func inner<T: HasFloat>(x: Float) -> T {
9999
T(float: 7 * x * x)

0 commit comments

Comments
 (0)