Description: Move tests that trigger -Warray-bounds to separate compilation unit GCC 10 is now smart enough to detect violation of array boundaries that tests are actually tested. Along with -Werror this led to tests failure, so I move such tests to another compilation unit to have the warning deactivated for only these tests. Bug-Debian: https://bugs.debian.org/966895 Author: Nicholas Guriev Last-Modified: Wed, 19 Aug 2020 08:55:52 +0300 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -179,6 +179,7 @@ add_gsl_test(owner_tests) add_gsl_test(byte_tests) add_gsl_test(algorithm_tests) add_gsl_test(strict_notnull_tests) +add_gsl_test(array_bounds) # No exception tests --- /dev/null +++ b/tests/array_bounds.cpp @@ -0,0 +1,68 @@ +/////////////////////////////////////////////////////////////////////////////// +// +// Copyright (c) 2015 Microsoft Corporation. All rights reserved. +// +// This code is licensed under the MIT License (MIT). +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT
aboutsummaryrefslogtreecommitdiff
path: root/build-aux/pre-inst-env.in
diff options
context:
space:
mode:
Diffstat (limited to 'build-aux/pre-inst-env.in')
0 files changed, 0 insertions, 0 deletions