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