diff options
Diffstat (limited to 'chromium/third_party/glslang/src/Test/spv.do-while-continue-break.vert')
-rw-r--r-- | chromium/third_party/glslang/src/Test/spv.do-while-continue-break.vert | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/chromium/third_party/glslang/src/Test/spv.do-while-continue-break.vert b/chromium/third_party/glslang/src/Test/spv.do-while-continue-break.vert new file mode 100644 index 00000000000..c085551e8b6 --- /dev/null +++ b/chromium/third_party/glslang/src/Test/spv.do-while-continue-break.vert @@ -0,0 +1,20 @@ +#version 310 es +void main() { + int i = 0; + int A, B, C, D, E, F, G; + do { + A = 0; + if (i == 2) { + B = 1; + continue; + C = 2; + } + if (i == 5) { + D = 3; + break; + E = 42; + } + F = 99; + } while (++i < 19); + G = 12; +} |