2 # Copyright (C) 2006-2010, Parrot Foundation.
7 t/pmc/default.t - test default PMC
12 % prove t/pmc/default.t
16 Tests the default PMC.
21 .include 'test_more.pir'
25 test_inspect_vtable_function()
35 ok($I0, "Couldn't create default PMC directly")
39 $P0 = new ['default'], 42
43 ok($I0, "Couldn't create default PMC directly with int initializer")
47 $P0 = new ['default'], $P1
51 ok($I0, "Couldn't create default PMC directly with PMC initializer")
54 .sub test_inspect_vtable_function
56 $P1 = inspect $P0, 'flags'
57 $I9 = 1 << 9 # PObj_is_PMC_FLAG
58 $I29 = 1 << 29 # PObj_is_class_FLAG
72 # vim: expandtab shiftwidth=4 ft=pir: