2 # Copyright (C) 2005-2010, Parrot Foundation.
7 t/dynpmc/subproxy.t - test if Sub is overridable via hll_map()
11 % prove t/dynpmc/subproxy.t
15 Tests the hll mapping of Sub PMCs. The test is using SubProxy, which
21 .include 'test_more.pir'
25 test_type_of_hll_mapped_sub()
30 lib = loadlib "subproxy"
31 unless lib goto not_loaded
38 .sub test_type_of_hll_mapped_sub
42 is($S0, 'Sub', "test type of hll_map'ped .Sub")
43 f = get_root_global ['some'], 'foo'
45 is($S0, 'SubProxy', "test type of hll_map'ped .Sub")
54 .sub load :anon :immediate
56 .local pmc sub,subproxy
59 subproxy = get_class 'SubProxy'
60 interp.'hll_map'(sub,subproxy)
71 # vim: expandtab shiftwidth=4 ft=pir: