summaryrefslogtreecommitdiffstats
path: root/tests/diagnostics/constexpr-error.slang.expected
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-08-18 12:48:46 -0700
committerGitHub <noreply@github.com>2023-08-18 12:48:46 -0700
commitf94b2f7a328a898c5e3dc1389d08e0b7ce6e092e (patch)
tree129f39703b10b5684825ce8626d3a4e908970fad /tests/diagnostics/constexpr-error.slang.expected
parent4de3d9b1987fddf8d95efe75aab592282b672a97 (diff)
Allow loop counters to be used as constexpr arguments. (#3139)
* Allow loop counters to be used as constexpr arguments. * Fix. * Fix. * Fix. * Fix. --------- Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tests/diagnostics/constexpr-error.slang.expected')
-rw-r--r--tests/diagnostics/constexpr-error.slang.expected6
1 files changed, 6 insertions, 0 deletions
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 = {
}