diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/bugs/half-coercion.slang | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/bugs/half-coercion.slang b/tests/bugs/half-coercion.slang new file mode 100644 index 000000000..43a12cf89 --- /dev/null +++ b/tests/bugs/half-coercion.slang @@ -0,0 +1,10 @@ +//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK): -target spirv + +// CHECK-NOT: warning + +RWStructuredBuffer<half> output; +[numthreads(1,1,1)] +void computeMain() +{ + output[0] = 0; // coercion from 0 to half should not result in a warning. +}
\ No newline at end of file |
