xref: /freebsd/usr.bin/m4/tests/patterns.m4 (revision fd45b686f9d92f583366c75b22c04c7ee49709c0)
1dnl $OpenBSD: src/regress/usr.bin/m4/patterns.m4,v 1.4 2003/06/08 20:11:45 espie Exp $
2patsubst(`quote s in string', `(s)', `\\\1')
3patsubst(`check whether subst
4over several lines
5works as expected', `^', `>>>')
6patsubst(`# This is a line to zap
7# and a second line
8keep this one', `^ *#.*
9')
10dnl Special case: empty regexp
11patsubst(`empty regexp',`',`a ')
12