summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/tests/warnings/022-rshift.vert
blob: 226d3466b06d7c4cb8500d4c069d8e42bf270e18 (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;
  }
}