projects
/
platform
/
upstream
/
glslang.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #2976 from jeremy-lunarg/hayes-fix-2975
[platform/upstream/glslang.git]
/
Test
/
spv.dead-complex-merge-after-return.vert
1
#version 450
2
3
layout(location =0 ) in int c;
4
layout(location =0 ) out int o;
5
6
void main() {
7
int i = 0;
8
o = 1;
9
do {
10
o = 2;
11
return;
12
o = 3;
13
} while(i++ < 5);
14
15
// All this is a dead merge block.
16
o = 4;
17
if (c==4) {
18
o = 100;
19
} else {
20
o = 200;
21
}
22
o = 300;
23
}