]>
git.proxmox.com Git - rustc.git/blob - src/binaryen/test/grow_memory.cpp
3 #include <emscripten.h>
5 volatile int writeOnly
;
9 assert(HEAPU8
.length
=== 16*1024*1024);
11 for (int i
= 0; i
< 20; i
++) {
12 printf("alloc 1MB: %d\n", i
);
13 writeOnly
= (int)malloc(1024*1024);
16 assert(HEAPU8
.length
> 16*1024*1024);