~ubuntu-branches/ubuntu/gutsy/m4/gutsy

« back to all changes in this revision

Viewing changes to checks/144.eval

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-08-01 14:00:55 UTC
  • mfrom: (1.5.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070801140055-ob48jo517shsyvgk
Tags: 1.4.10-0ubuntu1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl @ ../doc/m4.texinfo:5140: Origin of test
 
2
dnl @ expected status: 0
 
3
dnl @ extra options: 
 
4
dnl @ Copyright (C) 2006, 2007 Free Software Foundation
 
5
dnl @ This file is free software; the Free Software Foundation
 
6
dnl @ gives unlimited permission to copy and/or distribute it
 
7
dnl @ with or without modifications, as long as this notice
 
8
dnl @ is preserved.
 
9
eval(`2 ** 3 ** 2')
 
10
dnl @result{}512
 
11
eval(`(2 ** 3) ** 2')
 
12
dnl @result{}64
 
13
eval(`0 ** 1')
 
14
dnl @result{}0
 
15
eval(`2 ** 0')
 
16
dnl @result{}1
 
17
eval(`0 ** 0')
 
18
dnl @result{}
 
19
dnl @error{}m4:stdin:5: divide by zero in eval: 0 ** 0
 
20
eval(`4 ** -2')
 
21
dnl @error{}m4:stdin:6: negative exponent in eval: 4 ** -2
 
22
dnl @result{}