summary refs log tree commit diff
path: root/tests/pracownia3/043_while_or.xi
blob: 5d9525eb2ad6dbc01e5a9203c0577c7531563dec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pred():bool
{
    return false
}

main():int
{
    x:bool = true
    result:int = 13
    while x | pred() {
        result = 100
        x = false 
    }
    return result
}

//@PRACOWNIA
//@out Exit code: 100