summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/tests/warnings/028-conditional.vert
blob: 3447f05c7da3d4325e8b284de7c824e8a035a5bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#version 130

void main()
{
  bool defined = false;
  bool undefined;
  int fooInt;
  int definedInt = 2;
  int undefinedInt;

  fooInt = defined ? definedInt : undefinedInt;
  fooInt = defined ? undefinedInt : definedInt;

  fooInt = undefined ? definedInt : undefinedInt;
  fooInt = undefined ? undefinedInt : definedInt;
}