summary refs log tree commit diff
path: root/tests/pracownia4/pracownia3/001_or_01.xi
blob: 42e37157a710a244c28a4c1fc3766708b436f2d4 (plain) (blame)
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
printString(str:int[])

pred_lhs():bool
{
    printString("pred_lhs")
    return false
}

pred_rhs():bool
{
    printString("pred_rhs")
    return true
}

main():int
{
    result:int = 3
    if pred_lhs() | pred_rhs() {
        result = 1
    } else {
        result = 0
    }

    return result
}

//@PRACOWNIA
//@out pred_lhs
//@out pred_rhs
//@out Exit code: 1