summaryrefslogtreecommitdiff
path: root/tests/gentest/regexp.1.test
blob: 3427751edc168d63d83b6ba07d87f7bc60bab383 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

# gentest/regexp.1.test is part of the GNU m4 testsuite
# generated from example in ../doc/m4.texinfo line 2853

. ${srcdir}/defs

cat <<\EOF >in
regexp(`GNUs not Unix', `\<[a-z]\w+')
regexp(`GNUs not Unix', `\<Q\w*')
EOF

cat <<\EOF >ok
5
-1
EOF

$M4 -d in >out

$CMP -s out ok