Added compile fail test for uint_t<65>. related to #6169.

This commit is contained in:
Vicente J. Botet Escriba
2015-01-25 17:26:09 +01:00
parent a12b96c011
commit 1ff7278d5f
2 changed files with 14 additions and 0 deletions

View File

@ -25,5 +25,6 @@ test-suite integer
[ compile-fail fail_uint_exact.cpp ]
[ compile-fail fail_uint_fast.cpp ]
[ compile-fail fail_uint_least.cpp ]
[ compile-fail fail_uint_65.cpp ]
[ run common_factor_test.cpp ]
;

13
test/fail_uint_65.cpp Normal file
View File

@ -0,0 +1,13 @@
// Copyright John Maddock 2012.
// Distributed under the Boost
// Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <boost/integer.hpp>
#include <iostream>
int main()
{
std::cout << std::numeric_limits<boost::uint_t<65>::least>::digits;
return 0;
}