From 1ff7278d5f4f6aa68386f2b5622b34c44b32e26d Mon Sep 17 00:00:00 2001 From: "Vicente J. Botet Escriba" Date: Sun, 25 Jan 2015 17:26:09 +0100 Subject: [PATCH] Added compile fail test for uint_t<65>. related to #6169. --- test/Jamfile.v2 | 1 + test/fail_uint_65.cpp | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 test/fail_uint_65.cpp diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index f94bce9..e3b5be1 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -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 ] ; diff --git a/test/fail_uint_65.cpp b/test/fail_uint_65.cpp new file mode 100644 index 0000000..76b485e --- /dev/null +++ b/test/fail_uint_65.cpp @@ -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 +#include + +int main() +{ + std::cout << std::numeric_limits::least>::digits; + return 0; +}