github.com/tetratelabs/wazero@v1.7.3-0.20240513003603-48f702e154b5/imports/emscripten/testdata/grow.cc (about)

     1  #include <stdlib.h>
     2  #include <cstdint> // for uint8_t
     3  
     4  uint8_t *mem;
     5  
     6  int main() {
     7      mem = (uint8_t *) malloc(64 * 1024 + 1);
     8      if (mem == NULL) {
     9          return 1;
    10      } else {
    11          return 0;
    12      }
    13  }