0ec1f2b22bd789f9a90e9e2b0f766af30a06ddd0
[platform/upstream/m4.git] / checks / 175.patsubst
1 dnl @ ../doc/m4.texinfo:5926: Origin of test
2 dnl @ expected status: 0
3 dnl @ extra options: 
4 dnl @ Copyright (C) 2006, 2007, 2008, 2009 Free Software
5 dnl @ Foundation, Inc.
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
9 dnl @ is preserved.
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]+')
19 dnl @result{}GN not 
20 patsubst(`GNUs not Unix', `not', `NOT\')
21 dnl @error{}m4:stdin:6: Warning: trailing \ ignored in replacement
22 dnl @result{}GNUs NOT Unix