github.com/wasilibs/wazerox@v0.0.0-20240124024944-4923be63ab5f/internal/integration_test/vs/testdata/mem_grow.wat (about)

     1  (module
     2    (memory (export "memory")  1 5) ;; start with one memory page, and max of 4 pages
     3    (func $main
     4  
     5     (loop $my_loop
     6        (i32.gt_s
     7           (memory.grow (i32.const 1))
     8           (i32.const 0))
     9        br_if $my_loop
    10        unreachable)
    11      return
    12    )
    13    (start $main)
    14  )