2 # Copyright (C) 2007-2008, The Perl Foundation.
7 t/pmc/mutable.t - Test the Mutable PMC
11 % prove t/pmc/mutable.t
15 Tests the Mutable PMC.
19 .loadlib 'perl6_group'
22 .include 'include/test_more.pir'
23 load_bytecode "perl6.pbc"
35 # Mutable is initialized to contain an undef.
38 is($S1, 'Undef', 'typeof newclass retval')
45 $P2 = get_hll_global 'Int'
50 # Get integer value; see what we have stored.
52 is($I0, 42, 'stored value')
57 # Check we can call methods.
62 is($I0, 3, 'method calls on value work')
67 # Try and do a multi-dispatch call with two items.
71 $P2 = get_hll_global 'Int'
80 is($I0, 42, 'multi call worked')
88 # vim: expandtab shiftwidth=4 ft=pir: