aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/gtest-printers_test.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/gtest-printers_test.cc b/test/gtest-printers_test.cc
index 0ecd8715..fae3fa41 100644
--- a/test/gtest-printers_test.cc
+++ b/test/gtest-printers_test.cc
@@ -84,10 +84,9 @@ namespace foo {
// A user-defined unprintable type in a user namespace.
class UnprintableInFoo {
public:
- UnprintableInFoo() : x_(0x12EF), y_(0xAB34), z_(0) {}
+ UnprintableInFoo() : z_(0) { memcpy(xy_, "\xEF\x12\x0\x0\x34\xAB\x0\x0", 8); }
private:
- testing::internal::Int32 x_;
- testing::internal::Int32 y_;
+ char xy_[8];
double z_;
};