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