//META: generated=true
//META: model=claude-opus-4-7
//META: generated_at=2026-05-21T08:00:00+00:00
//META: source_commit=2964da04de136705348240f2bd9affa5f3818226
//META: doc_ref=source/slang/slang-diagnostics.lua
//META: doc_section_digest=8ae3c6d0df57f1791953fe1f501df3bbf224f6fef7dc4738bc6de09f8d43d1f2
//META: purpose=Fires diagnostic E31147 (cannot-resolve-original-function-for-derivative) -- cannot resolve original function for derivative
//META: intent=negative
//META: pipeline_stage=check
//META: catalog_code=31147
//META: catalog_name=cannot-resolve-original-function-for-derivative
//META: warning=Auto-generated. May drift from source. Do not edit by hand.

//DIAGNOSTIC_TEST:SIMPLE(diag=CHECK,non-exhaustive):

[BackwardDerivativeOf(unknownFunc)]
void derivFunc(inout DifferentialPair<float> p, float dOut) {}


// CHECK: E31147
