☰
Debian Codegraph
@
2.9.7+dfsg1-1
2.10.0+dfsg1-1
/
/
tests
/
spec
/
unit
/
general
/
struct_literal_context.mzn
☽
☼
tests/spec/unit/general/struct_literal_context.mzn
code
plain
raw
MPL-2.0
2014-2025 Monash University and NICTA
debian/copyright
1
/***
2
!Test
3
solvers: [gecode]
4
options:
5
all_solutions: true
6
expected: !Result
7
solution: !SolutionSet
8
- !Solution
9
x: 1
10
c: [true]
11
- !Solution
12
x: 2
13
c: [false]
14
***/
15
16
function tuple(var bool): foo(var int: x) = (x = 1,);
17
var 1..2: x;
18
any: c :: output = foo(x);