Ticket #835: arraybug.pir

File arraybug.pir, 493 bytes (added by treed, 13 years ago)

PIR code exhibiting the crash

Line 
1.sub main :main
2    .local pmc cl, array_one, array_two
3    cl = subclass "ResizablePMCArray", "ExampleArray"
4    array_one = new "ExampleArray"
5    array_two = new "ExampleArray"
6    array_one.'push'(1)
7    array_one.'push'("2")
8    array_one.'push'("frotz") # Removing this line gets rid of the crash
9    array_two.'push'(3)
10    array_two.'push'("4")
11    array_one.'append'(array_two)
12.end
13
14# Local Variables:
15#   mode: pir
16#   fill-column: 100
17# End:
18# vim: expandtab shiftwidth=4 ft=pir:
19