summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/Syntax/ImproperNesting.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/Syntax/ImproperNesting.cmake')
-rw-r--r--Tests/RunCMake/Syntax/ImproperNesting.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/Syntax/ImproperNesting.cmake b/Tests/RunCMake/Syntax/ImproperNesting.cmake
new file mode 100644
index 0000000..47ff9f9
--- /dev/null
+++ b/Tests/RunCMake/Syntax/ImproperNesting.cmake
@@ -0,0 +1,7 @@
+message(FATAL_ERROR "This should not happen")
+
+foreach(i 1 2)
+ if(1)
+endforeach()
+endif()
+endif()