diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2003-10-19 19:22:49 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2003-10-19 19:22:49 +0000 |
commit | 54364e0821fb0b1dad5bf54992709ecc9f08d8b1 (patch) | |
tree | c94ebb9c1e55f8456a27bb5e4b23f2c06eae1ae6 /regress/usr.bin/bc | |
parent | 9e2087d37770e4201db1975a051d3287b93b6bc3 (diff) |
Regressions for 'for' statement with empty E's.
Diffstat (limited to 'regress/usr.bin/bc')
-rw-r--r-- | regress/usr.bin/bc/Makefile | 5 | ||||
-rw-r--r-- | regress/usr.bin/bc/t10.in | 4 | ||||
-rw-r--r-- | regress/usr.bin/bc/t10.out | 7 |
3 files changed, 14 insertions, 2 deletions
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 |