summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/3rdparty/glslang/Test/spv.for-continue-break.vert
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bgfx/3rdparty/glslang/Test/spv.for-continue-break.vert')
-rw-r--r--3rdparty/bgfx/3rdparty/glslang/Test/spv.for-continue-break.vert20
1 files changed, 20 insertions, 0 deletions
diff --git a/3rdparty/bgfx/3rdparty/glslang/Test/spv.for-continue-break.vert b/3rdparty/bgfx/3rdparty/glslang/Test/spv.for-continue-break.vert
new file mode 100644
index 00000000000..afa31f2b3e8
--- /dev/null
+++ b/3rdparty/bgfx/3rdparty/glslang/Test/spv.for-continue-break.vert
@@ -0,0 +1,20 @@
+#version 310 es
+void main() {
+ int i;
+ int A, B, C, D, E, F, G;
+ for (i=0; i < 10 ; i++) {
+ A = 1;
+ if (i%2 ==0) {
+ B = 1;
+ continue;
+ C = 1;
+ }
+ if (i%3 == 0) {
+ D = 1;
+ break;
+ E = 1;
+ }
+ F = 12;
+ }
+ G = 99;
+}