2 # Copyright (C) 2001-2006, Parrot Foundation.
7 use lib qw( . lib ../lib ../../lib );
10 use Parrot::Test tests => 2;
14 t/dynpmc/subclass_with_pir_method.t - test adding pir methods to dynpmc's PMC
18 % prove t/dynpmc/subclass_with_pir_method.t
22 Tests the C<PerlString> PMC. Checks pir method execution in a dynpmc and a subclass of the pmc
28 <<'CODE', <<'OUTPUT', "subclass with pir method - .loadlib", todo => "PMCs don't obey HLL namespaces" );
33 get_class $P2, 'PerlString'
34 subclass $P0, $P2, 'NewPerlString'
36 new $P1, 'NewPerlString'
42 .namespace ['PerlString']
43 .sub 'perl_printhi' :method
44 print "HI from PerlString\n"
54 <<'CODE', <<'OUTPUT', "subclass with pir method - .HLL", todo => "PMCs don't obey HLL namespaces" );
60 get_class $P2, 'PerlString'
61 subclass $P0, $P2, 'NewPerlString'
63 new $P1, 'NewPerlString'
67 .namespace ['PerlString']
68 .sub 'perl_printhi' :method
69 print "HI from PerlString\n"
80 # cperl-indent-level: 4
83 # vim: expandtab shiftwidth=4: