2 # Copyright (C) 2005-2007, The Perl Foundation.
7 use lib qw( . lib ../lib ../../lib );
8 use Parrot::Test tests => 11;
10 pir_output_is( <<'CODE', <<'OUT', "alligator" );
11 # if the side-effect of set_addr/continuation isn't
12 # detected this program prints "Hi\nalligator\n"
22 new $P1, 'Continuation'
24 $P2 = find_name "alligator"
38 pir_output_is( <<'CODE', <<'OUT', "alligator 2 - r9629" );
41 args = new 'ResizablePMCArray'
47 if $S0 != "POPME" goto start
53 if $I0 >= $I1 goto end
66 pir_2_pasm_is( <<'CODE', <<'OUT', ":unique_reg" );
68 .param int i :unique_reg
69 .local int j :unique_reg
70 .local int k :unique_reg
76 # IMCC does produce b0rken PASM files
77 # see http://guest@rt.perl.org/rt3/Ticket/Display.html?id=32392
87 pir_output_is( <<'CODE', <<'OUT', "Explicit large register: S, PIR" );
96 pir_output_is( <<'CODE', <<'OUT', "Explicit large register: N, PIR" );
106 pir_output_is( <<'CODE', <<'OUT', "Explicit large register: I, PIR" );
116 pir_output_is( <<'CODE', <<'OUT', "Explicit large register: P, PIR" );
126 pasm_output_is( <<'CODE', <<'OUT', "Explicit large register: S, PASM" );
134 pasm_output_is( <<'CODE', <<'OUT', "Explicit large register: N, PASM" );
143 pasm_output_is( <<'CODE', <<'OUT', "Explicit large register: I, PASM" );
152 pasm_output_is( <<'CODE', <<'OUT', "Explicit large register: P, PASM" );
163 # cperl-indent-level: 4
166 # vim: expandtab shiftwidth=4: