Imported Upstream version 1.4.17
[platform/upstream/m4.git] / checks / 185.eval
1 dnl @ ../doc/m4.texi:6270: Origin of test
2 dnl @ expected status: 1
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 eval(`2 = 2')
11 dnl @error{}m4:stdin:1: Warning: recommend ==, not =, for equality operator
12 dnl @result{}1
13 eval(`++0')
14 dnl @error{}m4:stdin:2: invalid operator in eval: ++0
15 dnl @result{}
16 eval(`0 |= 1')
17 dnl @error{}m4:stdin:3: invalid operator in eval: 0 |= 1
18 dnl @result{}