aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/tests/warnings/021-lshift.vert
blob: ed8c819bcbf50def335e96b423cc55e92fe8e44a (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;
  }
}