Merge "memunreachable_test: don't use write to escape addresses"

am: f261f518ea

Change-Id: Ibdf91f3d9ab2285621d0111c7697e98082381234
This commit is contained in:
George Burgess IV 2019-05-24 18:42:54 -07:00 committed by android-build-merger
commit ab29c52ebf

View file

@ -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 {