summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--regress/usr.bin/dc/Makefile4
-rw-r--r--regress/usr.bin/dc/t11.in8
-rw-r--r--regress/usr.bin/dc/t11.out6
3 files changed, 16 insertions, 2 deletions
diff --git a/regress/usr.bin/dc/Makefile b/regress/usr.bin/dc/Makefile
index 0792ac952ee..c9ab693696f 100644
--- a/regress/usr.bin/dc/Makefile
+++ b/regress/usr.bin/dc/Makefile
@@ -1,8 +1,8 @@
-# $OpenBSD: Makefile,v 1.2 2003/10/18 19:48:10 otto Exp $
+# $OpenBSD: Makefile,v 1.3 2003/10/22 12:17:56 otto Exp $
DC=dc
-REGRESS_TARGETS=t1 t2 t4 t5 t6 t7 t8 t9 t10
+REGRESS_TARGETS=t1 t2 t4 t5 t6 t7 t8 t9 t10 t11
# .in: input file
# .out: desired result
diff --git a/regress/usr.bin/dc/t11.in b/regress/usr.bin/dc/t11.in
new file mode 100644
index 00000000000..5af86c77c4b
--- /dev/null
+++ b/regress/usr.bin/dc/t11.in
@@ -0,0 +1,8 @@
+[[IF]p]sa
+[[ELSE]p]sb
+0 1<aeb
+1 0>aeb
+0 0=aeb
+0 1=aeb
+1 0!=aeb
+0 0!=aeb
diff --git a/regress/usr.bin/dc/t11.out b/regress/usr.bin/dc/t11.out
new file mode 100644
index 00000000000..0304a3eb779
--- /dev/null
+++ b/regress/usr.bin/dc/t11.out
@@ -0,0 +1,6 @@
+ELSE
+ELSE
+IF
+ELSE
+IF
+ELSE