diff options
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 = { +} |
