github.com/wasilibs/wazerox@v0.0.0-20240124024944-4923be63ab5f/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  }