summaryrefslogtreecommitdiffstats
path: root/usr.bin/m4/tests/args.m4
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/m4/tests/args.m4')
-rw-r--r--usr.bin/m4/tests/args.m49
1 files changed, 9 insertions, 0 deletions
diff --git a/usr.bin/m4/tests/args.m4 b/usr.bin/m4/tests/args.m4
new file mode 100644
index 0000000..3ad30f2
--- /dev/null
+++ b/usr.bin/m4/tests/args.m4
@@ -0,0 +1,9 @@
+dnl $FreeBSD$
+dnl $OpenBSD: src/regress/usr.bin/m4/args.m4,v 1.1 2001/10/10 23:23:59 espie Exp $
+dnl Expanding all arguments
+define(`A', `first form: $@, second form $*')dnl
+define(`B', `C')dnl
+A(1,2,`B')
+dnl indirection means macro can get called with argc == 2 !
+indir(`A',1,2,`B')
+indir(`A')
OpenPOWER on IntegriCloud