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