From 818bd4687c9c14e5ad9bdc3b1bf2572f26943929 Mon Sep 17 00:00:00 2001 From: Søren Sandmann Pedersen Date: Mon, 18 Jun 2012 02:03:55 -0400 Subject: popbug3 --- examples/popbug3.nl | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 examples/popbug3.nl diff --git a/examples/popbug3.nl b/examples/popbug3.nl new file mode 100644 index 0000000..5a8cd59 --- /dev/null +++ b/examples/popbug3.nl @@ -0,0 +1,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; -- cgit v1.2.3