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