diff options
Diffstat (limited to 'libs/multiprecision/test/compile_fail/conv_fail_03.cpp')
-rw-r--r-- | libs/multiprecision/test/compile_fail/conv_fail_03.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libs/multiprecision/test/compile_fail/conv_fail_03.cpp b/libs/multiprecision/test/compile_fail/conv_fail_03.cpp new file mode 100644 index 0000000000..0fe8932019 --- /dev/null +++ b/libs/multiprecision/test/compile_fail/conv_fail_03.cpp @@ -0,0 +1,14 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright 2012 John Maddock. 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/multiprecision/cpp_int.hpp> + +using namespace boost::multiprecision; + +int main() +{ + cpp_int i = 2; + i != 2.3; +} |