def test_descrof(): cpu = LLVMCPU(None) # just to check that we can call them before setup_once(): from pypy.rpython.lltypesystem import lltype, rclass cpu.sizeof(rclass.OBJECT) cpu.fielddescrof(rclass.OBJECT, 'typeptr') cpu.arraydescrof(lltype.GcArray(lltype.Signed)) cpu.calldescrof(lltype.FuncType([], lltype.Signed), (), lltype.Signed)