12 bool operator==(const Struct &a, const Struct &b) {
13 return a.value == b.value;
16 typedef char buf_t[sizeof(Struct)];
17 buf_t global_new_buf, tagged_new_buf;
19 // This overrides global operator new
20 // This function and the following does not actually allocate memory. We are merely
21 // trying to make sure it is getting called.
23 operator new(std::size_t count)
25 return &global_new_buf;
30 operator new(std::size_t count, const new_tag_t &)
32 return &tagged_new_buf;
40 return 0; // break here