diff options
Diffstat (limited to 'src/compiler/glsl/tests/warnings/024-shaderout.vert')
-rw-r--r-- | src/compiler/glsl/tests/warnings/024-shaderout.vert | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/compiler/glsl/tests/warnings/024-shaderout.vert b/src/compiler/glsl/tests/warnings/024-shaderout.vert new file mode 100644 index 0000000..00a7988 --- /dev/null +++ b/src/compiler/glsl/tests/warnings/024-shaderout.vert @@ -0,0 +1,19 @@ +#version 130 + +out int fooOut; + +void main() +{ + int defined = 2; + int undefined; + int fooInt; + + defined = fooOut; + fooOut = undefined; + /* Technically at this point fooOut is still undefined. But it was + * initialized that is what the unitialized warning detects in any + * case. "Real undefined" is beyond the scope of what mesa is/should + * detect*/ + defined = fooOut; +} + |