mirror of
https://github.com/google/googletest.git
synced 2025-04-07 14:29:18 +00:00
Fixes issue 286.
This commit is contained in:
parent
d21cdf56b3
commit
ee5928fba1
1 changed files with 2 additions and 3 deletions
|
@ -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_;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue