diff options
Diffstat (limited to 'libcxx')
| -rw-r--r-- | libcxx/include/type_traits | 6 | ||||
| -rw-r--r-- | libcxx/test/libcxx/type_traits/is_floating_point.pass.cpp | 24 |
2 files changed, 0 insertions, 30 deletions
diff --git a/libcxx/include/type_traits b/libcxx/include/type_traits index 7ff67bfdb73..aadb97ba9bf 100644 --- a/libcxx/include/type_traits +++ b/libcxx/include/type_traits @@ -738,12 +738,6 @@ _LIBCPP_INLINE_VAR _LIBCPP_CONSTEXPR bool is_integral_v // is_floating_point template <class _Tp> struct __libcpp_is_floating_point : public false_type {}; -#ifdef __clang__ -template <> struct __libcpp_is_floating_point<__fp16> : public true_type {}; -#endif -#ifdef __FLT16_MANT_DIG__ -template <> struct __libcpp_is_floating_point<_Float16> : public true_type {}; -#endif template <> struct __libcpp_is_floating_point<float> : public true_type {}; template <> struct __libcpp_is_floating_point<double> : public true_type {}; template <> struct __libcpp_is_floating_point<long double> : public true_type {}; diff --git a/libcxx/test/libcxx/type_traits/is_floating_point.pass.cpp b/libcxx/test/libcxx/type_traits/is_floating_point.pass.cpp deleted file mode 100644 index 98452fad384..00000000000 --- a/libcxx/test/libcxx/type_traits/is_floating_point.pass.cpp +++ /dev/null @@ -1,24 +0,0 @@ -//===----------------------------------------------------------------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is dual licensed under the MIT and the University of Illinois Open -// Source Licenses. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -// -// <type_traits> -// -// Test that is_floating_point<T>::value is true when T=__fp16 or T=_Float16. - -#include <type_traits> - -int main() { -#ifdef __clang__ - static_assert(std::is_floating_point<__fp16>::value, ""); -#endif -#ifdef __FLT16_MANT_DIG__ - static_assert(std::is_floating_point<_Float16>::value, ""); -#endif - return 0; -} |

