Googletest export

Add printer for __{u,}int128_t.

PiperOrigin-RevId: 402417369
This commit is contained in:
Abseil Team
2021-10-11 19:18:01 -04:00
committed by Andy Soffer
parent 178cfacb24
commit 16f637fbf4
3 changed files with 69 additions and 0 deletions

View File

@@ -477,6 +477,12 @@ inline void PrintTo(char8_t c, ::std::ostream* os) {
}
#endif
// gcc/clang __{u,}int128_t
#if defined(__SIZEOF_INT128__)
GTEST_API_ void PrintTo(__uint128_t v, ::std::ostream* os);
GTEST_API_ void PrintTo(__int128_t v, ::std::ostream* os);
#endif // __SIZEOF_INT128__
// Overloads for C strings.
GTEST_API_ void PrintTo(const char* s, ::std::ostream* os);
inline void PrintTo(char* s, ::std::ostream* os) {