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