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