Giovanni Mascellani (@giomasce) commented about tests/hlsl/initializer-numeric.shader_test:
[test] draw quad probe all rgba (10.1, 1.1, 1.2, 2.1) 4
+[pixel shader todo] +float4 main() : sv_target +{
- uint4 aa = { 3U, 0xfau, 020u, -1u};
I think this test is slightly more powerful if `aa` has type `float4` instead of `uint4`, so that it is checked that `-1u` is indeed parsed as an unsigned expression (because if it's not the cast to `float` will give `-1` rather than `UINT_MAX`).
Also, I'd test for a number which is in range for `uint` but not for `int`, like three billions.