diff options
Diffstat (limited to 'tests/diagnostics')
| -rw-r--r-- | tests/diagnostics/autodiff-data-flow-2.slang | 1 | ||||
| -rw-r--r-- | tests/diagnostics/autodiff-data-flow.slang | 1 | ||||
| -rw-r--r-- | tests/diagnostics/constexpr-error.slang.expected | 6 |
3 files changed, 8 insertions, 0 deletions
diff --git a/tests/diagnostics/autodiff-data-flow-2.slang b/tests/diagnostics/autodiff-data-flow-2.slang index 3148c6a41..42aee0d01 100644 --- a/tests/diagnostics/autodiff-data-flow-2.slang +++ b/tests/diagnostics/autodiff-data-flow-2.slang @@ -28,6 +28,7 @@ float h(float x) // error: dynamic loop without [MaxIters] or [ForceUnroll] for (int i = 0; i < (int)x; i++) { + no_diff debugBreak(); } return val; diff --git a/tests/diagnostics/autodiff-data-flow.slang b/tests/diagnostics/autodiff-data-flow.slang index e8d9502e4..bbade0e0a 100644 --- a/tests/diagnostics/autodiff-data-flow.slang +++ b/tests/diagnostics/autodiff-data-flow.slang @@ -28,6 +28,7 @@ void g(float x) for (int i = 0; i < 5; i++) // Not ok, we can't infer the loop iterations because the body modifies induction var. { i = (int)x; + no_diff debugBreak(); } return; } diff --git a/tests/diagnostics/constexpr-error.slang.expected b/tests/diagnostics/constexpr-error.slang.expected index f6c27b006..6f124fe34 100644 --- a/tests/diagnostics/constexpr-error.slang.expected +++ b/tests/diagnostics/constexpr-error.slang.expected @@ -6,9 +6,15 @@ tests/diagnostics/constexpr-error.slang(27): error 40006: expected a compile-tim tests/diagnostics/constexpr-error.slang(35): error 40006: expected a compile-time constant result += t.Sample(s, uv, int2(ii)); ^ +tests/diagnostics/constexpr-error.slang(39): error 40006: expected a compile-time constant + for(uint jj = 0; jj < uv.y; jj++) + ^~ tests/diagnostics/constexpr-error.slang(41): error 40006: expected a compile-time constant result += t.Sample(s, uv, int2(jj)); ^ +tests/diagnostics/constexpr-error.slang(39): error 40006: expected a compile-time constant + for(uint jj = 0; jj < uv.y; jj++) + ^~ } standard output = { } |
