aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/tests/warnings/007-test-mod.vert
blob: 2881db84a770d59f3b0f585826670204ad3fa18c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#version 130

void main()
{
  int defined = 2;
  int undefined;
  float fooFloat;

  if (undefined % 2 == 0) {
    fooFloat = 10.0;
  }

  if (defined % 2 == 0) {
    fooFloat = 10.0;
  }

  if (undefined % defined == 0) {
    fooFloat = 10.0;
  }

  if (defined % undefined == 0) {
    fooFloat = 10.0;
  }
}