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