2024-10-11 20:38:43 +02:00
|
|
|
//@ 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.
|
|
|
|
|
|
2025-05-10 21:50:06 +00:00
|
|
|
#[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
|
2024-10-11 20:38:43 +02:00
|
|
|
fn foo() {}
|