diff options
Diffstat (limited to 'src/compiler/glsl/tests/warnings/022-rshift.vert')
-rw-r--r-- | src/compiler/glsl/tests/warnings/022-rshift.vert | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/compiler/glsl/tests/warnings/022-rshift.vert b/src/compiler/glsl/tests/warnings/022-rshift.vert new file mode 100644 index 00000000000..226d3466b06 --- /dev/null +++ b/src/compiler/glsl/tests/warnings/022-rshift.vert @@ -0,0 +1,25 @@ +#version 130 + +void main() +{ + int defined = 2; + int undefined; + float fooFloat; + + if (undefined >> 2 == 0) { + fooFloat = 10.0; + } + + if (defined >> 2 == 0) { + fooFloat = 10.0; + } + + if (undefined >> defined == 0) { + fooFloat = 10.0; + } + + if (defined >> undefined == 0) { + fooFloat = 10.0; + } +} + |