summaryrefslogtreecommitdiff
path: root/tests/diagnostics/autodiff-data-flow-2.slang.expected
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-01-19 08:58:20 -0800
committerGitHub <noreply@github.com>2023-01-19 08:58:20 -0800
commit6fae15cd1210d8b664243d640e70ca47dccf9752 (patch)
treed3235149f587ed18147f7a0d916932e199dce888 /tests/diagnostics/autodiff-data-flow-2.slang.expected
parent0586f3298fa7d554fa2682103eefba88740d6758 (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.expected8
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 = {
+}