~mmach/netext73/mesa-haswell

« back to all changes in this revision

Viewing changes to src/compiler/glsl/tests/warnings/028-conditional.vert

  • Committer: mmach
  • Date: 2022-09-22 19:56:13 UTC
  • Revision ID: netbit73@gmail.com-20220922195613-wtik9mmy20tmor0i
2022-09-22 21:17:09

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#version 130
2
 
 
3
 
void main()
4
 
{
5
 
  bool defined = false;
6
 
  bool undefined;
7
 
  int fooInt;
8
 
  int definedInt = 2;
9
 
  int undefinedInt;
10
 
 
11
 
  fooInt = defined ? definedInt : undefinedInt;
12
 
  fooInt = defined ? undefinedInt : definedInt;
13
 
 
14
 
  fooInt = undefined ? definedInt : undefinedInt;
15
 
  fooInt = undefined ? undefinedInt : definedInt;
16
 
}
17