diff options
-rw-r--r-- | regress/usr.bin/bc/Makefile | 5 | ||||
-rw-r--r-- | regress/usr.bin/bc/t13.in | 11 | ||||
-rw-r--r-- | regress/usr.bin/bc/t13.out | 9 |
3 files changed, 23 insertions, 2 deletions
diff --git a/regress/usr.bin/bc/Makefile b/regress/usr.bin/bc/Makefile index 75eaeaeb1b8..10a9ceac669 100644 --- a/regress/usr.bin/bc/Makefile +++ b/regress/usr.bin/bc/Makefile @@ -1,8 +1,8 @@ -# $OpenBSD: Makefile,v 1.5 2003/11/11 09:18:21 otto Exp $ +# $OpenBSD: Makefile,v 1.6 2003/11/11 19:50:50 otto Exp $ BC=bc -REGRESS_TARGETS=t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 +REGRESS_TARGETS=t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 # .in: input file # .out: desired result @@ -19,6 +19,7 @@ REGRESS_TARGETS=t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 # t10: for with empty E's # t11: if else # t12: print +# t13: alternive forms of define and return all: clean ${REGRESS_TARGET} diff --git a/regress/usr.bin/bc/t13.in b/regress/usr.bin/bc/t13.in new file mode 100644 index 00000000000..55ebdb829b7 --- /dev/null +++ b/regress/usr.bin/bc/t13.in @@ -0,0 +1,11 @@ +#line comment +# +define f() { + return + return 1+2 + return (1+2) + return () +} +define f() +{ +} diff --git a/regress/usr.bin/bc/t13.out b/regress/usr.bin/bc/t13.out new file mode 100644 index 00000000000..d2401a89ff8 --- /dev/null +++ b/regress/usr.bin/bc/t13.out @@ -0,0 +1,9 @@ + + +[0 1Q 1 2+ 1Q 1 2+ 1Q0 1Q0 1Q]s + + +[0 1Q]s + + +q
\ No newline at end of file |