This commit is contained in:
2026-06-16 16:09:42 +08:00
commit bffb0cb6b7
644 changed files with 86620 additions and 0 deletions

View File

@@ -0,0 +1,66 @@
"""
Auto-generated Python stub file from zc.class_test.py
Module: zc.class_test
"""
import stdio
import stdint
import t, c
class SimpleData(t.Object):
x: t.CInt
y: t.CInt
class Point3D(t.Object):
x: t.CFloat
y: t.CFloat
z: t.CFloat
class Student(t.Object):
name: t.CChar | t.CPtr
age: t.CInt
score: t.CInt
def __init__(self: Student, n: t.CChar | t.CPtr, a: t.CInt, s: t.CInt) -> t.CVoid | t.State: pass
def get_age(self: Student) -> t.CInt | t.State: pass
def get_score(self: Student) -> t.CInt | t.State: pass
class Counter(t.Object):
value: t.CInt
def __init__(self: Counter, initial: t.CInt) -> t.CVoid | t.State: pass
def increment(self: Counter) -> t.CVoid | t.State: pass
def get_value(self: Counter) -> t.CInt | t.State: pass
class StackObj(t.Object):
data: t.CInt
next_ptr: t.CVoid | t.CPtr
def TestBasicDataClass() -> t.CVoid | t.State: pass
def TestPoint3DClass() -> t.CVoid | t.State: pass
def TestStudentClass() -> t.CVoid | t.State: pass
def TestCounterClass() -> t.CVoid | t.State: pass
def TestStackAllocation() -> t.CVoid | t.State: pass
def TestHeapAllocation() -> t.CVoid | t.State: pass
def TestHeapObjectWithInit() -> t.CVoid | t.State: pass
def TestMultipleStackObjects() -> t.CVoid | t.State: pass
def TestImplicitInitCall() -> t.CVoid | t.State: pass
def TestClassWithBitFields() -> t.CVoid | t.State: pass
def TestIntArray() -> t.CVoid | t.State: pass
def TestFloatArray() -> t.CVoid | t.State: pass
def TestCharArray() -> t.CVoid | t.State: pass
def TestNestedArray() -> t.CVoid | t.State: pass
def TestArrayWithStruct() -> t.CVoid | t.State: pass
def TestArrayPointer() -> t.CVoid | t.State: pass
def TestDynamicString() -> t.CVoid | t.State: pass