1 dnl @ ../doc/m4.texi:4700: Origin of test
2 dnl @ expected status: 0
4 dnl @ Copyright (C) 2006, 2007, 2008, 2009 Free Software
6 dnl @ This file is free software; the Free Software Foundation
7 dnl @ gives unlimited permission to copy and/or distribute it
8 dnl @ with or without modifications, as long as this notice
10 ifdef(`changeword', `', `errprint(` skipping: no changeword support
16 dnl This example wants to recognize changeword, dnl, and `foo\n'.
17 dnl First, we check that our regexp will match.
18 regexp(`changeword', `[cd][a-z]*\|foo[
25 regexp(`f', `[cd][a-z]*\|foo[
30 changeword(`[cd][a-z]*\|foo[
33 dnl Even though `foo\n' matches, we forgot to allow `f'.
36 changeword(`[cd][a-z]*\|fo*[
39 dnl Now we can call `foo\n'.