Files
swift-mirror/test/AutoDiff/compiler_crashers_fixed/sr15566-vardecl-adjoint-values.swift
Robert Widmann 3511314952 Disable Flaky Test
Disable an autodiff test that's causing the linker on Ubuntu 20.04 to crash every so often

rdar://87254800
2022-01-07 09:08:07 -08:00

24 lines
763 B
Swift

// RUN: %target-build-swift %s
// RUN: %target-swift-frontend -c -g -Xllvm -verify-di-holes=true %s
// Every so often this test crashes the linker on Linux
// REQUIRES: rdar87254800
// SR-15566: Differentiable functions with control flow yield an assertion failure: "location is a VarDecl, but SILDebugVariable is empty"
import _Differentiation
public struct Test: Differentiable {
public var v1: [[Float]]
@differentiable(reverse)
public init(v1: [[Float]]) {
if v1.count != 2 {
fatalError("Mismatched counts")
}
self.v1 = v1
}
}
// Assertion failed: ((!dyn_cast_or_null<VarDecl>(Loc.getAsASTNode<Decl>()) || Var) && "location is a VarDecl, but SILDebugVariable is empty"), function createAllocStack, file SILBuilder.h, line 389.