summaryrefslogtreecommitdiff
path: root/Examples/test-suite/octave/preproc_runme.m
blob: 80f1d32bacb95cd13dbdf9772ac8bd13c0229924 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
  crash_dumps_octave_core(0);
endif

preproc

if (preproc.cvar.endif != 1)
  error("failed");
endif

if (preproc.cvar.define != 1)
  error("failed");
endif

if (preproc.cvar.defined != 1)
  error("failed");
endif

if (2*preproc.one != preproc.two)
  error("failed");
endif