mirror of
https://github.com/boostorg/integer.git
synced 2025-07-30 04:37:13 +02:00
Added compile fail test for uint_t<65>. related to #6169.
This commit is contained in:
@ -25,5 +25,6 @@ test-suite integer
|
|||||||
[ compile-fail fail_uint_exact.cpp ]
|
[ compile-fail fail_uint_exact.cpp ]
|
||||||
[ compile-fail fail_uint_fast.cpp ]
|
[ compile-fail fail_uint_fast.cpp ]
|
||||||
[ compile-fail fail_uint_least.cpp ]
|
[ compile-fail fail_uint_least.cpp ]
|
||||||
|
[ compile-fail fail_uint_65.cpp ]
|
||||||
[ run common_factor_test.cpp ]
|
[ run common_factor_test.cpp ]
|
||||||
;
|
;
|
||||||
|
13
test/fail_uint_65.cpp
Normal file
13
test/fail_uint_65.cpp
Normal 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;
|
||||||
|
}
|
Reference in New Issue
Block a user