xref: /freebsd/contrib/unifdef/tests/outperms.sh (revision fb3ef04d2028110f06d68b09009f1f2ca0f4128e)
1*fb3ef04dSDag-Erling Smørgravumask 027
2*fb3ef04dSDag-Erling Smørgravunifdef -DFOO=1 -DFOOB=42 -UBAR -ooutfile.c if1.c
3*fb3ef04dSDag-Erling Smørgrave=$?
4*fb3ef04dSDag-Erling Smørgravcase ${BUILD_MINGW} in
5*fb3ef04dSDag-Erling Smørgrav(yes)	printf '%s\n' '-rw-r-----' 1>&2 ;;
6*fb3ef04dSDag-Erling Smørgrav(*)	ls -l outfile.c | cut -d' ' -f1 1>&2 ;;
7*fb3ef04dSDag-Erling Smørgravesac
8*fb3ef04dSDag-Erling Smørgravcat outfile.c
9*fb3ef04dSDag-Erling Smørgravrm outfile.c
10*fb3ef04dSDag-Erling Smørgravexit $e
11