diff options
author | Abseil Team <absl-team@google.com> | 2021-10-11 23:18:01 (GMT) |
---|---|---|
committer | Andy Soffer <asoffer@google.com> | 2021-10-13 16:28:20 (GMT) |
commit | 16f637fbf4ffc3f7a01fa4eceb7906634565242f (patch) | |
tree | bbef3ef26a7ec79187a4933c8034309c77fae028 /googletest/include | |
parent | 178cfacb24f8937ef7a585d9bcfffd967386306a (diff) | |
download | googletest-16f637fbf4ffc3f7a01fa4eceb7906634565242f.zip googletest-16f637fbf4ffc3f7a01fa4eceb7906634565242f.tar.gz googletest-16f637fbf4ffc3f7a01fa4eceb7906634565242f.tar.bz2 |
Googletest export
Add printer for __{u,}int128_t.
PiperOrigin-RevId: 402417369
Diffstat (limited to 'googletest/include')
-rw-r--r-- | googletest/include/gtest/gtest-printers.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/googletest/include/gtest/gtest-printers.h b/googletest/include/gtest/gtest-printers.h index 98d0494..a28843d 100644 --- a/googletest/include/gtest/gtest-printers.h +++ b/googletest/include/gtest/gtest-printers.h @@ -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) { |