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