blob: adb35cb8e335608bf588c23988efdc1437ff2432 [file] [log] [blame]
//@ revisions: has_support no_support
//@[no_support] ignore-enzyme
//@[has_support] needs-enzyme
#![crate_type = "lib"]
// This checks that without the autodiff feature enabled, we can't use it.
#[autodiff_reverse(dfoo)]
//[has_support]~^ ERROR cannot find attribute `autodiff_reverse` in this scope
//[no_support]~^^ ERROR cannot find attribute `autodiff_reverse` in this scope
fn foo() {}