sourcemod/sourcepawn/compiler/tests/ok-base-dtor.sp

16 lines
238 B
SourcePawn

native Handle:CreateHandle(count);
native CloseHandle(Handle:handle);
methodmap Handle {
public Handle() = CreateHandle;
public ~Handle() = CloseHandle;
};
methodmap Crab < Handle {
};
public main() {
new Crab:crab;
delete crab;
}