math/config/has_float128.cpp
jzmaddock 118a93e3a6 Add tests for cstdfloat.hpp defined types.
Fix Math code to not use lexical_cast for constants for boost::floatmax_t when that type is __float128.
Fix constant usage so it doesn't break when the suffix is "Q".
2014-02-15 11:14:00 +00:00

18 lines
335 B
C++

// Copyright John Maddock 2013.
// Use, modification and distribution are subject to 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)
extern "C" {
#include <quadmath.h>
}
int main()
{
__float128 f = -2.0Q;
f = fabsq(f);
return 0;
}