xref: /third_party/mesa3d/src/compiler/glsl/tests/warnings/002-loop.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   int i;
6bf215546Sopenharmony_ci   int undefined;
7bf215546Sopenharmony_ci   int undefined2;
8bf215546Sopenharmony_ci   int defined = 2;
9bf215546Sopenharmony_ci   float fooFloat;
10bf215546Sopenharmony_ci
11bf215546Sopenharmony_ci   for (i = 0; i < undefined; i++) {
12bf215546Sopenharmony_ci      fooFloat = 10.0;
13bf215546Sopenharmony_ci   }
14bf215546Sopenharmony_ci
15bf215546Sopenharmony_ci   for (; undefined < undefined2; i++) {
16bf215546Sopenharmony_ci      fooFloat = 10.0;
17bf215546Sopenharmony_ci   }
18bf215546Sopenharmony_ci
19bf215546Sopenharmony_ci   for (i = 0; i < defined; i++) {
20bf215546Sopenharmony_ci      fooFloat = 10.0;
21bf215546Sopenharmony_ci   }
22bf215546Sopenharmony_ci}
23bf215546Sopenharmony_ci
24

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