Debian Codegraph @

tests/spec/unit/regression/output_only_fn.mzn

raw
1 /***
2 !Test
3 type: output-model
4 solvers: [gecode]
5 expected: !OutputModel output_only_fn.ozn
6 ***/
7
8 % Previously the declaration for foo would not get copied to the output model
9
10 function int: foo() = 10;
11 int: x :: output_only = foo();
12 output [show(x)];