
# undefined behaviour somehow
NAME=create mach0 x86-64
BROKEN=1 # Sometimes fails with Clang on Linux and Windows
FILE=-
CMDS=<<EOF
rm ./tiny64.mach0__
!rz-bin -C mach064:cc -a x86 -b 64 ./tiny64.mach0__
ls -l ./tiny64.mach0__~[3]
rm ./tiny64.mach0__
EOF
EXPECT=<<EOF
4097
EOF
RUN

NAME=create mach0 x86-64 auto-mach064
FILE=-
CMDS=<<EOF
rm ./tiny64.mach0__2
!rz-bin -C mach064:cc -a x86 -b 64 ./tiny64.mach0__2
ls -l ./tiny64.mach0__2~[3]
rm ./tiny64.mach0__2
EOF
EXPECT=<<EOF
4097
EOF
RUN

NAME=create mach0 x86-32
FILE=-
CMDS=<<EOF
rm ./tiny32.mach0__
!rz-bin -C mach0:cc -a x86 -b 32 ./tiny32.mach0__
ls -l ./tiny32.mach0__~[3]
rm ./tiny32.mach0__
EOF
EXPECT=<<EOF
4097
EOF
RUN
