libstdc++-v3/testsuite/18_support/numeric_limits/128bit.cc
raw| 1 | // { dg-do compile } |
| 2 | |
| 3 | #include <limits> |
| 4 | |
| 5 | #if __SIZEOF_FLOAT128__ |
| 6 | __extension__ template class std::numeric_limits<__float128>; |
| 7 | |
| 8 | # if __cplusplus >= 201103L |
| 9 | static_assert( std::numeric_limits<__float128>::max_digits10 == 36, |
| 10 | "PR libstdc++/121374" ); |
| 11 | # endif |
| 12 | #endif |
| 13 | |
| 14 | #if __SIZEOF_INT128__ |
| 15 | __extension__ template class std::numeric_limits<__int128>; |
| 16 | __extension__ template class std::numeric_limits<unsigned __int128>; |
| 17 | #endif |