blob: d075b94068b2a4ac8c8bfa11f45ded5425cfc3d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
result code = -1
standard error = {
tests/diagnostics/autodiff.slang(35): error 38031: 'no_diff' can only be used to decorate a call.
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.
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.
return no_diff nonDiff(x); // no_diff in a non-differentiable function
^~~~~~~
}
standard output = {
}
|