diff options
Diffstat (limited to 'src/compiler/glsl/tests/warnings/020-array-length.vert')
-rw-r--r-- | src/compiler/glsl/tests/warnings/020-array-length.vert | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/compiler/glsl/tests/warnings/020-array-length.vert b/src/compiler/glsl/tests/warnings/020-array-length.vert new file mode 100644 index 00000000000..0fa57b22dd8 --- /dev/null +++ b/src/compiler/glsl/tests/warnings/020-array-length.vert @@ -0,0 +1,12 @@ +#version 130 + +void main() +{ + float array[4]; + int fooLength; + + fooLength = array.length(); + array[0] = 2.0; + fooLength = array.length(); +} + |