# merged: / search io.maps with map; / search io.maps 2
NAME=/ search.in=io.maps without -m
FILE=bins//wasm/inc.wast
ARGS=-m 0x80000
CMDS=<<EOF
e search.in=io.maps
e io.va=true
/ get~[0]
?e --
e search.in=io.maps
e io.va=true
/ get~[0]
?e --
om 3 0x400000
e io.va=true
e search.in=io.maps
/ get~[0]
EOF
EXPECT=<<EOF
0x00080053
0x00080067
--
0x00080053
0x00080067
--
0x00080053
0x00080067
0x00400053
0x00400067
EOF
RUN

NAME=/ search.in=io.maps without -m
FILE=bins//wasm/inc.wast
CMDS=<<EOF
e search.in=io.maps
/ get~[0]
EOF
EXPECT=<<EOF
0x00000053
0x00000067
EOF
RUN

# merged: / search.in=file
NAME=/ search.in=(default)
FILE=bins//wasm/inc.wast
CMDS=<<EOF
/ get~[0]
?e --
e search.in=file
/ get~[0]
EOF
EXPECT=<<EOF
0x00000053
0x00000067
--
0x00000053
0x00000067
EOF
RUN
