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