1;;! gc = true
2;;! bulk_memory = true
3
4(module
5  (type $arr (array i8))
6  (data $d "hello world")
7
8  (import "wasmtime" "gc" (func $gc))
9
10  (func (export "test") (result i32)
11    (array.new_data $arr $d (i32.const 0) (i32.const 5))
12
13    (call $gc)
14    (drop (array.new $arr (i32.const 0) (i32.const 5)))
15
16    (array.get_u $arr (i32.const 0))
17  )
18)
19
20(assert_return (invoke "test") (i32.const 104)) ;; 'h'
21