summaryrefslogtreecommitdiff
path: root/checks/099.trace
blob: f23cb19138bb223bb6f3e137e2a46e9f4a8c326e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
dnl @ ../doc/m4.texinfo:3878: Origin of test
dnl @ expected status: 0
dnl @ extra options: 
dnl @ Copyright (C) 2006, 2007, 2008, 2009 Free Software
dnl @ Foundation, Inc.
dnl @ This file is free software; the Free Software Foundation
dnl @ gives unlimited permission to copy and/or distribute it
dnl @ with or without modifications, as long as this notice
dnl @ is preserved.
traceon(`traceon')
dnl @result{}
traceon(`traceoff')
dnl @error{}m4trace: -1- traceon(`traceoff')
dnl @result{}
traceoff(`traceoff')
dnl @error{}m4trace: -1- traceoff(`traceoff')
dnl @result{}
traceoff(`traceon')
dnl @result{}
traceon(`eval', `m4_divnum')
dnl @result{}
define(`m4_eval', defn(`eval'))
dnl @result{}
define(`m4_divnum', defn(`divnum'))
dnl @result{}
eval(divnum)
dnl @error{}m4trace: -1- eval(`0') -> `0'
dnl @result{}0
m4_eval(m4_divnum)
dnl @error{}m4trace: -2- m4_divnum -> `0'
dnl @result{}0