summaryrefslogtreecommitdiff
path: root/examples/popbug3.nl
blob: 5a8cd592bf83a319b6a57a59a312ef821252de8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* This program makes B return multiple times, and each time
 * the "7" is popped from the stack, causing the stack to become
 * underfull
 */

ret: label = null;

B() -> int32
{
    ret = back;
    goto out;

    @back:
    return 20;
}

print 7 + B();

@out:
print "asdf";
goto ret;