summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/tests/warnings/018-bitand.vert
blob: 7e879dc99e11cccb83f5b9afb543dca849c46b66 (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
#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;
  }
}