summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/continue/NoEnclosingBlockInFunction.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/continue/NoEnclosingBlockInFunction.cmake')
-rw-r--r--Tests/RunCMake/continue/NoEnclosingBlockInFunction.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/RunCMake/continue/NoEnclosingBlockInFunction.cmake b/Tests/RunCMake/continue/NoEnclosingBlockInFunction.cmake
new file mode 100644
index 0000000..eb2a098
--- /dev/null
+++ b/Tests/RunCMake/continue/NoEnclosingBlockInFunction.cmake
@@ -0,0 +1,8 @@
+function(foo)
+ continue()
+endfunction(foo)
+
+foreach(i RANGE 1 2)
+ foo()
+ message(STATUS "Hello World")
+endforeach()