1 dnl @ ../doc/m4.texi:5955: 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 patsubst(`GNUs not Unix', `^', `OBS: ')
11 dnl @result{}OBS: GNUs not Unix
12 patsubst(`GNUs not Unix', `\<', `OBS: ')
13 dnl @result{}OBS: GNUs OBS: not OBS: Unix
14 patsubst(`GNUs not Unix', `\w*', `(\&)')
15 dnl @result{}(GNUs)() (not)() (Unix)()
16 patsubst(`GNUs not Unix', `\w+', `(\&)')
17 dnl @result{}(GNUs) (not) (Unix)
18 patsubst(`GNUs not Unix', `[A-Z][a-z]+')
20 patsubst(`GNUs not Unix', `not', `NOT\')
21 dnl @error{}m4:stdin:6: Warning: trailing \ ignored in replacement
22 dnl @result{}GNUs NOT Unix