github.com/tetratelabs/wazero@v1.7.3-0.20240513003603-48f702e154b5/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  )