Imported Upstream version 1.4.17
[platform/upstream/m4.git] / checks / 167.regexp
1 dnl @ ../doc/m4.texi:5750: 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 regexp(`abc', `\(b\)', `\\\10\a')
11 dnl @result{}\b0a
12 regexp(`abc', `b', `\1\')
13 dnl @error{}m4:stdin:2: Warning: sub-expression 1 not present
14 dnl @error{}m4:stdin:2: Warning: trailing \ ignored in replacement
15 dnl @result{}
16 regexp(`abc', `\(\(d\)?\)\(c\)', `\1\2\3\4\5\6')
17 dnl @error{}m4:stdin:3: Warning: sub-expression 4 not present
18 dnl @error{}m4:stdin:3: Warning: sub-expression 5 not present
19 dnl @error{}m4:stdin:3: Warning: sub-expression 6 not present
20 dnl @result{}c