EndStreamPrimitive not supported when there is #extension GL_ARB_gpu_shader5
[platform/upstream/glslang.git] / Test / spv.dead-complex-continue-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   // 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 }