• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#version 450
2
3layout(location =0 ) in int c;
4layout(location =0 ) out int o;
5
6void main() {
7  int i = 0;
8  o = 1;
9  // This has non-trivial continue target.
10  for (i=0; i < 5; ++i, o=99) {
11    o = 2;
12    return;
13    o = 3;
14  }
15  // This is considered reachable since Glslang codegen will
16  // create a conditional branch in the header, and one arm
17  // of that branch reaches this merge block.
18  o = 4;
19}
20