summaryrefslogtreecommitdiffstats
path: root/Tests/GeneratorExpression/check-part3.cmake
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-08-13 11:32:27 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-08-13 11:58:39 (GMT)
commit36eef302c0b8ecb992c5d4b01562bcaef543b6fc (patch)
tree52bf92db14c90c3528f573f68893eee0d85e728f /Tests/GeneratorExpression/check-part3.cmake
parent4bc8b7abab976530d9675cff13ef1dc7c2139d00 (diff)
downloadCMake-36eef302c0b8ecb992c5d4b01562bcaef543b6fc.zip
CMake-36eef302c0b8ecb992c5d4b01562bcaef543b6fc.tar.gz
CMake-36eef302c0b8ecb992c5d4b01562bcaef543b6fc.tar.bz2
Genex: Fix segfault when parsing ends with parameter expectation.
The extendResult method expects a non-empty parameters vector, as assured by the normal case. Avoid calling the method when the parser finds an incomplete generator expression, but has already entered the state of expecting to find parameters.
Diffstat (limited to 'Tests/GeneratorExpression/check-part3.cmake')
-rw-r--r--Tests/GeneratorExpression/check-part3.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/GeneratorExpression/check-part3.cmake b/Tests/GeneratorExpression/check-part3.cmake
index 5a6a441..74a596c 100644
--- a/Tests/GeneratorExpression/check-part3.cmake
+++ b/Tests/GeneratorExpression/check-part3.cmake
@@ -24,3 +24,5 @@ endforeach()
check(test_alias_file_exe "1")
check(test_alias_file_lib "1")
check(test_alias_target_name "1")
+check(test_early_termination_1 "$<:")
+check(test_early_termination_2 "$<:,")