summaryrefslogtreecommitdiffstats
path: root/googletest/include
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2021-10-11 23:18:01 (GMT)
committerAndy Soffer <asoffer@google.com>2021-10-13 16:28:20 (GMT)
commit16f637fbf4ffc3f7a01fa4eceb7906634565242f (patch)
treebbef3ef26a7ec79187a4933c8034309c77fae028 /googletest/include
parent178cfacb24f8937ef7a585d9bcfffd967386306a (diff)
downloadgoogletest-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.h6
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) {