diff options
author | 2004-05-12 21:24:37 +0000 | |
---|---|---|
committer | 2004-05-12 21:24:37 +0000 | |
commit | f4d586e1badb73f666b6c05f3f34a837a587b5c8 (patch) | |
tree | b5026a98202073b62e7903713e49f57f2156b403 | |
parent | replace hand-made expr() parser with a lex/yacc affair that is shorter, (diff) | |
download | wireguard-openbsd-f4d586e1badb73f666b6c05f3f34a837a587b5c8.tar.xz wireguard-openbsd-f4d586e1badb73f666b6c05f3f34a837a587b5c8.zip |
eval regress matching PR, more stuff to come.
-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 |