diff options
| author | Sai Praveen Bangaru <31557731+saipraveenb25@users.noreply.github.com> | 2023-07-12 18:02:36 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-12 18:02:36 -0400 |
| commit | bbd9c2e6d7b57f5acc3238083ab2f7c7b140df5e (patch) | |
| tree | b6abec59b4ff3fe92436db35c1e61a6df236f550 /tests/diagnostics | |
| parent | 4ed3aafa20b667329f2f9dea94d7c65dc2e80db4 (diff) | |
Extend `no_diff` to support subscript operations on resources and array variables… (#2981)
* Extend `no_diff` to support subscript operations on resources and array variables
* Update autodiff.slang.expected
Diffstat (limited to 'tests/diagnostics')
| -rw-r--r-- | tests/diagnostics/autodiff.slang.expected | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/diagnostics/autodiff.slang.expected b/tests/diagnostics/autodiff.slang.expected index d075b9406..95da2a6d3 100644 --- a/tests/diagnostics/autodiff.slang.expected +++ b/tests/diagnostics/autodiff.slang.expected @@ -1,12 +1,12 @@ result code = -1 standard error = { -tests/diagnostics/autodiff.slang(35): error 38031: 'no_diff' can only be used to decorate a call. +tests/diagnostics/autodiff.slang(30): error 38031: 'no_diff' can only be used to decorate a call or a subscript operation float x1 = no_diff x; // invalid use of no_diff here. ^~~~~~~ -tests/diagnostics/autodiff.slang(36): error 38032: use 'no_diff' on a call to a differentiable function has no meaning. +tests/diagnostics/autodiff.slang(31): error 38032: use 'no_diff' on a call to a differentiable function has no meaning. return no_diff f(x); // no_diff on a differentiable call has no meaning. ^~~~~~~ -tests/diagnostics/autodiff.slang(41): error 38033: cannot use 'no_diff' in a non-differentiable function. +tests/diagnostics/autodiff.slang(36): error 38033: cannot use 'no_diff' in a non-differentiable function. return no_diff nonDiff(x); // no_diff in a non-differentiable function ^~~~~~~ } |
