xref: /freebsd/contrib/unifdef/tests/outdir.sh (revision fb3ef04d2028110f06d68b09009f1f2ca0f4128e)
1*fb3ef04dSDag-Erling Smørgravmkdir -p outdir
2*fb3ef04dSDag-Erling Smørgravunifdef -DFOO=1 -DFOOB=42 -UBAR -ooutdir/outfile.c if1.c
3*fb3ef04dSDag-Erling Smørgrave=$?
4*fb3ef04dSDag-Erling Smørgravcat outdir/outfile.c
5*fb3ef04dSDag-Erling Smørgravrm -r outdir
6*fb3ef04dSDag-Erling Smørgravexit $e
7