* updated

This commit is contained in:
peter 2001-06-04 18:17:09 +00:00
parent d7eb8e1e6b
commit d0474620d7
2 changed files with 23 additions and 1 deletions

View File

@ -4,10 +4,19 @@
{$linklib c}
type
tprintfproc=procedure(t:pchar);varargs;cdecl;
procedure printf(t:pchar);varargs;cdecl;external;
var
t : tprintfproc;
begin
printf('Test %d\n',1);
printf('Proc test %d %s %f'#10,1,'test',1234.5678);
t:=@printf;
t('Procvar test %d %s %f'#10,2,'test',1234.5678);
{$else}
begin
writeln('Unix only test');

13
tests/tbs/tb0362.pp Normal file
View File

@ -0,0 +1,13 @@
{$R+}
type
size_t = Cardinal;
function CMSG_ALIGN(len: size_t): size_t;
begin
CMSG_ALIGN := (len + SizeOf(size_t) - 1) and (not (SizeOf(size_t) - 1));
end;
begin
end.