heptagon/test/bad/side_effect.ept
Gwenal Delaval 6011353cec Added test of options
Added script test_option which:
- compile and run without option
- compile with option given as argument, run
- diff on the two outputs, fails if different outputs

config file checks for existence of compiler (fails if not exist)

statics1.ept is a copy of statics.ept ; statics2.ept depends on statics1.ept
instead of statics.ept (so as dependency order => lexical order on file names)
2012-07-19 15:23:40 +02:00

17 lines
300 B
Plaintext

(* This fails: the nodes should be declared as "unsafe" (because of side effect) *)
node hello() returns (b:bool)
let
() = Iostream.printf("hello\n");
automaton
state A do
b = true;
() = Iostream.printf("hello\n");
end;
tel
node main() returns ()
var b:bool;
let
b = hello();
tel