xref: /freebsd/usr.bin/m4/tests/args.m4 (revision 3a92d97ff0f22d21608e1c19b83104c4937523b6)
1*3a92d97fSJulio Merinodnl $FreeBSD$
2*3a92d97fSJulio Merinodnl $OpenBSD: src/regress/usr.bin/m4/args.m4,v 1.1 2001/10/10 23:23:59 espie Exp $
3*3a92d97fSJulio Merinodnl Expanding all arguments
4*3a92d97fSJulio Merinodefine(`A', `first form: $@, second form $*')dnl
5*3a92d97fSJulio Merinodefine(`B', `C')dnl
6*3a92d97fSJulio MerinoA(1,2,`B')
7*3a92d97fSJulio Merinodnl indirection means macro can get called with argc == 2 !
8*3a92d97fSJulio Merinoindir(`A',1,2,`B')
9*3a92d97fSJulio Merinoindir(`A')
10