// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include TEST_SETUP(Test); int Test::Main() { char * v = static_cast(malloc(0x400001)); char * nv = static_cast(realloc(v, 0x500001)); ASSERT_TRUE(v == nv); v = static_cast(realloc(nv, 0x600001)); ASSERT_TRUE(v != nv); free(v); char *t = static_cast(malloc(70)); free (t+7); t = static_cast(malloc(0x400001)); free (t+7); return 0; }