summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/foreach/foreach-RANGE-non-int-test-2-1.cmake
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2020-02-27 18:51:09 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2020-02-27 19:52:06 (GMT)
commita33b3949e5337da978828d611f3ca3f08bcda21b (patch)
tree8fcb374c3a5e20596f3c9135160a9698cf1777cc /Tests/RunCMake/foreach/foreach-RANGE-non-int-test-2-1.cmake
parent813b28902320831c0a668d1a6dc30817c87c73c3 (diff)
downloadCMake-a33b3949e5337da978828d611f3ca3f08bcda21b.zip
CMake-a33b3949e5337da978828d611f3ca3f08bcda21b.tar.gz
CMake-a33b3949e5337da978828d611f3ca3f08bcda21b.tar.bz2
foreach: Fix crash when parsing invalid integer
Fixes: #20393
Diffstat (limited to 'Tests/RunCMake/foreach/foreach-RANGE-non-int-test-2-1.cmake')
-rw-r--r--Tests/RunCMake/foreach/foreach-RANGE-non-int-test-2-1.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/RunCMake/foreach/foreach-RANGE-non-int-test-2-1.cmake b/Tests/RunCMake/foreach/foreach-RANGE-non-int-test-2-1.cmake
new file mode 100644
index 0000000..885c805
--- /dev/null
+++ b/Tests/RunCMake/foreach/foreach-RANGE-non-int-test-2-1.cmake
@@ -0,0 +1,2 @@
+foreach(a RANGE b 1)
+endforeach()