diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2004-05-12 21:24:38 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2004-05-12 21:24:38 +0000 |
commit | d5ee764ac1e975390a8ecf81336fab41a5a20078 (patch) | |
tree | 5c83fa034b41ebb02c6df558e5e5a4fc0bdcd231 /regress/usr.bin/m4 | |
parent | e501b0d1201b21283998cdc00a7f56d6a2d8568a (diff) |
eval regress matching PR, more stuff to come.
Diffstat (limited to 'regress/usr.bin/m4')
-rw-r--r-- | regress/usr.bin/m4/Makefile | 7 | ||||
-rw-r--r-- | regress/usr.bin/m4/eval.m4 | 5 | ||||
-rw-r--r-- | regress/usr.bin/m4/eval.out | 3 |
3 files changed, 13 insertions, 2 deletions
diff --git a/regress/usr.bin/m4/Makefile b/regress/usr.bin/m4/Makefile index 562aa57ad5f..cbbb094f6b3 100644 --- a/regress/usr.bin/m4/Makefile +++ b/regress/usr.bin/m4/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.17 2002/09/02 20:01:44 avsm Exp $ +# $OpenBSD: Makefile,v 1.18 2004/05/12 21:24:37 espie Exp $ FIBOMAX=25 M4=m4 @@ -8,7 +8,7 @@ CLEANFILES+= ff_after_dnl.m4 strangequotes.m4 fibo.out REGRESS_TARGETS= test-ff_after_dnl test-m4wrap test-m4wrap2 test-fibo \ test-patterns trip test-strangequotes test-redef test-quotes \ - test-weird test-args test-esyscmd + test-weird test-args test-esyscmd test-eval test-ff_after_dnl: ff_after_dnl.m4 ${M4} ff_after_dnl.m4 | diff - ${.CURDIR}/ff_after_dnl.out @@ -55,6 +55,9 @@ test-args: test-esyscmd: ${M4} ${.CURDIR}/esyscmd.m4 | diff -u - ${.CURDIR}/esyscmd.out +test-eval: + ${M4} ${.CURDIR}/eval.m4 | diff -u - ${.CURDIR}/eval.out + .PHONY: ${REGRESS_TARGETS} .include <bsd.regress.mk> diff --git a/regress/usr.bin/m4/eval.m4 b/regress/usr.bin/m4/eval.m4 new file mode 100644 index 00000000000..f16707868a3 --- /dev/null +++ b/regress/usr.bin/m4/eval.m4 @@ -0,0 +1,5 @@ +dnl $OpenBSD: eval.m4,v 1.1 2004/05/12 21:24:37 espie Exp $ +dnl expr parser +eval(224&127) +eval(224|127) +eval(224&&127) diff --git a/regress/usr.bin/m4/eval.out b/regress/usr.bin/m4/eval.out new file mode 100644 index 00000000000..7298b3f4384 --- /dev/null +++ b/regress/usr.bin/m4/eval.out @@ -0,0 +1,3 @@ +96 +255 +1 |