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