diff options
Diffstat (limited to 'src/compiler/glsl/tests/warnings/026-out-function-parameter-shaderout.vert')
-rw-r--r-- | src/compiler/glsl/tests/warnings/026-out-function-parameter-shaderout.vert | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/compiler/glsl/tests/warnings/026-out-function-parameter-shaderout.vert b/src/compiler/glsl/tests/warnings/026-out-function-parameter-shaderout.vert new file mode 100644 index 00000000000..4d7a44f9af4 --- /dev/null +++ b/src/compiler/glsl/tests/warnings/026-out-function-parameter-shaderout.vert @@ -0,0 +1,14 @@ +#version 130 + +void fooFunction(out float outVar); + +out float fooOut; + +void main() +{ + float willBeDefined; + + fooFunction(willBeDefined); + fooOut = willBeDefined; +} + |