Giovanni Mascellani (@giomasce) commented about tests/hlsl-invalid.shader_test:
{ return 1.0; }
+[pixel shader fail] +static uint i; +float4 main() : sv_target { return 1/i; }
It's good to test for this failure, but we should probably also have a succeeding test for the usual case (having a static numeric variable, returning it and showing it is zero).