From 54364e0821fb0b1dad5bf54992709ecc9f08d8b1 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Sun, 19 Oct 2003 19:22:49 +0000 Subject: Regressions for 'for' statement with empty E's. --- regress/usr.bin/bc/Makefile | 5 +++-- regress/usr.bin/bc/t10.in | 4 ++++ regress/usr.bin/bc/t10.out | 7 +++++++ 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 regress/usr.bin/bc/t10.in create mode 100644 regress/usr.bin/bc/t10.out (limited to 'regress/usr.bin/bc') diff --git a/regress/usr.bin/bc/Makefile b/regress/usr.bin/bc/Makefile index f4750fef1a3..2fda2dc6ea9 100644 --- a/regress/usr.bin/bc/Makefile +++ b/regress/usr.bin/bc/Makefile @@ -1,8 +1,8 @@ -# $OpenBSD: Makefile,v 1.2 2003/10/18 19:58:51 otto Exp $ +# $OpenBSD: Makefile,v 1.3 2003/10/19 19:22:48 otto Exp $ BC=bc -REGRESS_TARGETS=t1 t2 t3 t4 t5 t6 t7 t8 t9 +REGRESS_TARGETS=t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 # .in: input file # .out: desired result @@ -16,6 +16,7 @@ REGRESS_TARGETS=t1 t2 t3 t4 t5 t6 t7 t8 t9 # t7: assignment ops # t8: continue ops # t9: more continue +# t10: for with empty E's all: clean ${REGRESS_TARGET} diff --git a/regress/usr.bin/bc/t10.in b/regress/usr.bin/bc/t10.in new file mode 100644 index 00000000000..eab50685a5a --- /dev/null +++ b/regress/usr.bin/bc/t10.in @@ -0,0 +1,4 @@ +for (;;) { +} +for (;a<1;) +for (a=1;a<1;) diff --git a/regress/usr.bin/bc/t10.out b/regress/usr.bin/bc/t10.out new file mode 100644 index 00000000000..fd522db5c40 --- /dev/null +++ b/regress/usr.bin/bc/t10.out @@ -0,0 +1,7 @@ +[ 0s. 0 0=0]s0 + 0s. 0 0=0 +[ 0s.la 1>0]s0 + 0s.la 1>0 +[ 0s.la 1>0]s0 + 1dsas.la 1>0 +q \ No newline at end of file -- cgit v1.2.3