fpc/tests/test/packages/univint/tcgrectmake.pp
Jonas Maebe 614436d8cb * added pocall_mwpascal to cdecl_pocalls so we no longer have to explicitly
add it everywhere in the paramanagers (where it was often forgotten)
  - removed places where it was explicitly added to cdecl_pocalls checks
  + test

git-svn-id: trunk@22616 -
2012-10-12 08:41:03 +00:00

17 lines
327 B
ObjectPascal

{ %target=darwin }
program test;
uses
MacOSAll;
procedure Callback (data: ptr; context: ptr); mwpascal;
begin
end;
var
arr: CFMutableArrayRef;
begin
arr := CFArrayCreateMutable(nil, 0, @kCFTypeArrayCallBacks);
CFArrayApplyFunction(arr, CFRangeMake(0, CFArrayGetCount(arr)), CFArrayApplierFunction(@Callback), nil);
end.