Merge "memunreachable_test: don't use `write` to escape addresses"
This commit is contained in:
commit
f261f518ea
|
@ -47,7 +47,8 @@ class HiddenPointer {
|
|||
|
||||
// Trick the compiler into thinking a value on the stack is still referenced.
|
||||
static void Ref(void** ptr) {
|
||||
write(0, ptr, 0);
|
||||
void** volatile storage;
|
||||
storage = ptr;
|
||||
}
|
||||
|
||||
class MemunreachableTest : public ::testing::Test {
|
||||
|
|
Loading…
Reference in New Issue