xref: /third_party/mesa3d/src/compiler/glsl/tests/warnings/020-array-length.vert
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/mesa3d/src/compiler/glsl/tests/warnings/
1bf215546Sopenharmony_ci#version 130
2bf215546Sopenharmony_ci
3bf215546Sopenharmony_civoid main()
4bf215546Sopenharmony_ci{
5bf215546Sopenharmony_ci  float array[4];
6bf215546Sopenharmony_ci  int fooLength;
7bf215546Sopenharmony_ci
8bf215546Sopenharmony_ci  fooLength = array.length();
9bf215546Sopenharmony_ci  array[0] = 2.0;
10bf215546Sopenharmony_ci  fooLength = array.length();
11bf215546Sopenharmony_ci}
12bf215546Sopenharmony_ci
13

Indexes created Thu Nov 07 10:32:03 CST 2024