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