diff options
Diffstat (limited to 'tests/diagnostics/constexpr-error.slang')
| -rw-r--r-- | tests/diagnostics/constexpr-error.slang | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/diagnostics/constexpr-error.slang b/tests/diagnostics/constexpr-error.slang index 0a4744b71..a79c71847 100644 --- a/tests/diagnostics/constexpr-error.slang +++ b/tests/diagnostics/constexpr-error.slang @@ -24,7 +24,7 @@ float4 main() : SV_Target result += t.Sample(s, uv, int2(0,0)); // Error: data passed through cbuffer isn't compile-time constant - // CHECK: ([[# @LINE+1]]): error 40006: + // CHECK: ([[# @LINE+1]]): error 40012: result += t.Sample(s, uv, offset); // Error: data computed via conditional isn't compile-time cosntant @@ -33,16 +33,19 @@ float4 main() : SV_Target { ii = 1; } - // CHECK: ([[# @LINE+1]]): error 40006: + // CHECK: ([[# @LINE+1]]): error 40012: result += t.Sample(s, uv, int2(ii)); // Error: data computed in loop isn't compile-time constant // (and loop isn't unroll-able) - // CHECK: ([[# @LINE+1]]): error 40006: + // CHECK: ([[# @LINE+1]]): error 40012: for(uint jj = 0; jj < uv.y; jj++) { result += t.Sample(s, uv, int2(jj)); } + + + return result; }
\ No newline at end of file |
