diff options
| author | Yong He <yonghe@outlook.com> | 2023-01-19 08:58:20 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-19 08:58:20 -0800 |
| commit | 6fae15cd1210d8b664243d640e70ca47dccf9752 (patch) | |
| tree | d3235149f587ed18147f7a0d916932e199dce888 /tests/diagnostics/autodiff-data-flow-2.slang.expected | |
| parent | 0586f3298fa7d554fa2682103eefba88740d6758 (diff) | |
Add diagnostic for calling non-bwd-diff func from bwd-diff func. (#2602)
Diffstat (limited to 'tests/diagnostics/autodiff-data-flow-2.slang.expected')
| -rw-r--r-- | tests/diagnostics/autodiff-data-flow-2.slang.expected | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/diagnostics/autodiff-data-flow-2.slang.expected b/tests/diagnostics/autodiff-data-flow-2.slang.expected new file mode 100644 index 000000000..9026c0748 --- /dev/null +++ b/tests/diagnostics/autodiff-data-flow-2.slang.expected @@ -0,0 +1,8 @@ +result code = -1 +standard error = { +tests/diagnostics/autodiff-data-flow-2.slang(18): error 41020: derivative cannot be propagated through call to non-backward-differentiable function `f`, use 'no_diff' to clarify intention. + float val = f(x + 1); // Error: f must also be backward-differentiable + ^ +} +standard output = { +} |
