mesa/src/compiler/glsl/tests/warnings/020-array-length.vert
Alejandro Piñeiro 2ed9563e79 glsl: add unit tests data vertex/expected outcome for uninitialized warning
v2: fix 025 test. Add three more tests (Ian Romanick)

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2016-05-26 09:19:36 +02:00

12 lines
145 B
GLSL

#version 130
void main()
{
float array[4];
int fooLength;
fooLength = array.length();
array[0] = 2.0;
fooLength = array.length();
}