Skip to content

1.12: Rethrow not allowed catch block #2806

@wsmoses

Description

@wsmoses
using Enzyme
using Test

Enzyme.API.printall!(true)

    function f25(x)
        try
            sqrt(-1.0)
            return 3x
        catch
            return 2x
        end
    end
    @test autodiff(Forward, f25, Duplicated(2.0, 1.0))[1] == 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions