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