summaryrefslogblamecommitdiff
path: root/tests/pracownia1/parse_error.xi
blob: 7bc8eee28d8719439ac7b41ff10697762c246f5e (plain) (tree)










































































                               
x:int

main(x:int y:int)
{
}

main() int int {

}

main()
{
    (x:int, y:int) = pair()
}

pair(): int, int
{
    return (0,0)
}

f()
{
    return 1;
    x = 1
}

f()
{
    x = ''
}

f()
{
    x = 'ab'
}

f()
{
    x = '
'
}

f()
{
    x = '\a'
}

f()
{
    x = "a
b"
}

f()
{
    x = "a\tb"
}

f()
{
    while cond return 1
}

f()
{
    if cond return 1
}

f()
{
    if cond return 1 else z = 1
}

//@PRACOWNIA
//@should_not_parse