From f94b2f7a328a898c5e3dc1389d08e0b7ce6e092e Mon Sep 17 00:00:00 2001 From: Yong He Date: Fri, 18 Aug 2023 12:48:46 -0700 Subject: 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 --- tests/diagnostics/constexpr-error.slang.expected | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/diagnostics/constexpr-error.slang.expected') 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 = { } -- cgit v1.2.3