blob: 7b9b5f5f20bdc0991bc99356c96f5505372de2b5 [file] [log] [blame]
//@ compile-flags: -Zautodiff=Enable -C opt-level=3 -Clto=fat
//@ no-prefer-dynamic
//@ needs-enzyme
//@ build-pass
// Check that differentiating functions with ZST args does not break
#![feature(autodiff)]
#[core::autodiff::autodiff_forward(fd_inner, Const, Dual)]
fn f(_zst: (), _x: &mut f64) {}
fn fd(x: &mut f64, xd: &mut f64) {
fd_inner((), x, xd);
}
fn main() {}