summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/continue/ContinueNestedForeach.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/continue/ContinueNestedForeach.cmake')
-rw-r--r--Tests/RunCMake/continue/ContinueNestedForeach.cmake13
1 files changed, 13 insertions, 0 deletions
diff --git a/Tests/RunCMake/continue/ContinueNestedForeach.cmake b/Tests/RunCMake/continue/ContinueNestedForeach.cmake
new file mode 100644
index 0000000..de7c51b
--- /dev/null
+++ b/Tests/RunCMake/continue/ContinueNestedForeach.cmake
@@ -0,0 +1,13 @@
+message(STATUS "start")
+foreach(outer RANGE 7 9)
+ if("${outer}" EQUAL 8)
+ continue()
+ endif()
+ foreach(inner RANGE 1 5)
+ if("${inner}" EQUAL 1 OR "${inner}" EQUAL 3 OR "${inner}" EQUAL 5)
+ continue()
+ endif()
+ message(STATUS "${outer} ${inner}")
+ endforeach()
+endforeach()
+message(STATUS "end")