xref: /freebsd/usr.bin/m4/tests/redef.m4 (revision 8aac90f18aef7c9eea906c3ff9a001ca7b94f375)
1dnl $OpenBSD: src/regress/usr.bin/m4/redef.m4,v 1.2 2001/09/27 22:40:58 espie Exp $
2dnl check all properties of builtin are passed on, including args behavior
3define(`mybuiltin',defn(`builtin'))dnl
4builtin mybuiltin
5define(`mydefine',defn(`define'))dnl
6mydefine(`mydefn',defn(`defn'))dnl
7mydefine(`myundefine',mydefn(`undefine'))dnl
8myundefine(`defn')dnl
9myundefine(`define')dnl
10myundefine(`undefine')dnl
11mydefine(`mydef2',mydefn(`mydefine'))dnl
12mydefine(`mydef', mydefn(`define'))dnl
13myundefine(`mydefine')dnl
14mydef2(`A',`B')dnl
15mydef(`C',`D')dnl
16A C
17