summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--regress/usr.bin/m4/redef.m45
-rw-r--r--regress/usr.bin/m4/redef.out1
2 files changed, 5 insertions, 1 deletions
diff --git a/regress/usr.bin/m4/redef.m4 b/regress/usr.bin/m4/redef.m4
index ffc254a5b1b..5ae53360299 100644
--- a/regress/usr.bin/m4/redef.m4
+++ b/regress/usr.bin/m4/redef.m4
@@ -1,4 +1,7 @@
-dnl $OpenBSD: redef.m4,v 1.1 2001/09/19 19:15:08 espie Exp $
+dnl $OpenBSD: redef.m4,v 1.2 2001/09/27 22:40:58 espie Exp $
+dnl check all properties of builtin are passed on, including args behavior
+define(`mybuiltin',defn(`builtin'))dnl
+builtin mybuiltin
define(`mydefine',defn(`define'))dnl
mydefine(`mydefn',defn(`defn'))dnl
mydefine(`myundefine',mydefn(`undefine'))dnl
diff --git a/regress/usr.bin/m4/redef.out b/regress/usr.bin/m4/redef.out
index a12ea8a775d..ee482f013a8 100644
--- a/regress/usr.bin/m4/redef.out
+++ b/regress/usr.bin/m4/redef.out
@@ -1 +1,2 @@
+builtin mybuiltin
B C