diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2021-02-16 15:29:37 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2021-02-18 13:30:55 (GMT) |
commit | 79eaa908dc2ad339d5f92b10a30c4244975ab21a (patch) | |
tree | 822684b66b9a891c3c9e92ff1fdd8838fd28b45f /Tests/RunCMake/CMP0121/CMP0121-ERANGE-Common.cmake | |
parent | 1f1fdff7fa9f51ccdc91232606a6ade20e02d83f (diff) | |
download | CMake-79eaa908dc2ad339d5f92b10a30c4244975ab21a.zip CMake-79eaa908dc2ad339d5f92b10a30c4244975ab21a.tar.gz CMake-79eaa908dc2ad339d5f92b10a30c4244975ab21a.tar.bz2 |
cmListCommand: add a policy for failing on invalid indicies
Diffstat (limited to 'Tests/RunCMake/CMP0121/CMP0121-ERANGE-Common.cmake')
-rw-r--r-- | Tests/RunCMake/CMP0121/CMP0121-ERANGE-Common.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMP0121/CMP0121-ERANGE-Common.cmake b/Tests/RunCMake/CMP0121/CMP0121-ERANGE-Common.cmake new file mode 100644 index 0000000..5594be8 --- /dev/null +++ b/Tests/RunCMake/CMP0121/CMP0121-ERANGE-Common.cmake @@ -0,0 +1,8 @@ +set(listvar a b c d e) + +list(GET listvar + 18446744073709551616 # 2^64 + 2147483648 # 2^31 + 4294967296 # 2^32; errors out-of-range as -2147483643 due to underflow + out) +message("ERANGE: -->${out}<--") |