Created
September 2, 2010 22:24
-
-
Save anonymous/563082 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pmichaud@orange:~/parrot/trunk$ cat x.pir | |
.sub 'main' :main | |
$P0 = subclass 'Integer', 'MyInt' | |
$P1 = new ['ResizablePMCArray'] | |
$I0 = 0 | |
loop: | |
unless $I0 < 20000 goto done | |
$P2 = new $P0 | |
assign $P2, $I0 | |
push $P1, $P2 | |
inc $I0 | |
goto loop | |
done: | |
say 'about to join' | |
$S0 = join ' ', $P1 | |
say $S0 | |
.end | |
pmichaud@orange:~/parrot/trunk$ ./parrot x.pir | |
about to join | |
Segmentation fault | |
pmichaud@orange:~/parrot/trunk$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment