summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/Syntax/FunctionUnmatchedForeach.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/Syntax/FunctionUnmatchedForeach.cmake')
-rw-r--r--Tests/RunCMake/Syntax/FunctionUnmatchedForeach.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/Syntax/FunctionUnmatchedForeach.cmake b/Tests/RunCMake/Syntax/FunctionUnmatchedForeach.cmake
new file mode 100644
index 0000000..ee9c184
--- /dev/null
+++ b/Tests/RunCMake/Syntax/FunctionUnmatchedForeach.cmake
@@ -0,0 +1,5 @@
+function(f)
+ foreach(i 1)
+ #endforeach() # missing
+endfunction()
+f()