File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
test/AutoDiff/validation-test Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -390,6 +390,7 @@ ClassTests.test("ClassMethods - generic") {
390
390
}
391
391
}
392
392
393
+ #if !(os(Windows) || os(Android)) && (arch(i386) || arch(x86_64))
393
394
class SubSpecializeOverrideCustomDerivatives : Super < Float80 > {
394
395
@differentiable ( wrt: x)
395
396
override func f( _ x: Tracked < Float80 > ) -> Tracked < Float80 > {
@@ -408,6 +409,7 @@ ClassTests.test("ClassMethods - generic") {
408
409
return ( f ( x) , { v in 3 * v } )
409
410
}
410
411
}
412
+ #endif
411
413
412
414
func classValueWithGradient< T: Differentiable & FloatingPoint > (
413
415
_ c: Super < T >
@@ -420,7 +422,9 @@ ClassTests.test("ClassMethods - generic") {
420
422
expectEqual ( ( 1 , 1 ) , classValueWithGradient ( SubOverride < Float > ( ) ) )
421
423
expectEqual ( ( 3 , 3 ) , classValueWithGradient ( SubSpecializeOverride ( ) ) )
422
424
expectEqual ( ( 3 , 3 ) , classValueWithGradient ( SubOverrideCustomDerivatives < Float > ( ) ) )
425
+ #if !(os(Windows) || os(Android)) && (arch(i386) || arch(x86_64))
423
426
expectEqual ( ( 3 , 3 ) , classValueWithGradient ( SubSpecializeOverrideCustomDerivatives ( ) ) )
427
+ #endif
424
428
}
425
429
426
430
ClassTests . test ( " ClassMethods - closure captures " ) {
You can’t perform that action at this time.
0 commit comments