xref: /freebsd/usr.bin/m4/tests/redef.m4 (revision 59c8e88e72633afbc47a4ace0d2170d00d51f7dc)
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