mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 19:08:15 +02:00
* updated
This commit is contained in:
parent
d7eb8e1e6b
commit
d0474620d7
@ -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
13
tests/tbs/tb0362.pp
Normal 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.
|
Loading…
Reference in New Issue
Block a user