mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 16:49:07 +02:00
* new tests
This commit is contained in:
parent
0050ff5ab9
commit
6f93efe3de
17
tests/webtbs/tw3172.pp
Normal file
17
tests/webtbs/tw3172.pp
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
{ %opt=-Sew }
|
||||||
|
|
||||||
|
type
|
||||||
|
PUI32 = ^Longword;
|
||||||
|
var
|
||||||
|
P : PUI32;
|
||||||
|
Count : Longint;
|
||||||
|
Dw : Longword;
|
||||||
|
begin
|
||||||
|
Dw:=1;
|
||||||
|
Count:=1;
|
||||||
|
p:=@DW;
|
||||||
|
// Increase pointer
|
||||||
|
Inc(P,Count);
|
||||||
|
if Dw<>1 then
|
||||||
|
halt(1);
|
||||||
|
end.
|
29
tests/webtbs/tw3257.pp
Normal file
29
tests/webtbs/tw3257.pp
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
{ %target=linux,freebsd }
|
||||||
|
|
||||||
|
{ Source provided for Free Pascal Bug Report 3257 }
|
||||||
|
{ Submitted by "peter green" on 2004-08-18 }
|
||||||
|
{ e-mail: plugwash@p10link.net }
|
||||||
|
unit tw3257;
|
||||||
|
|
||||||
|
{$mode delphi}
|
||||||
|
{$inline on}
|
||||||
|
|
||||||
|
interface
|
||||||
|
|
||||||
|
implementation
|
||||||
|
uses
|
||||||
|
baseunix,unix,sysutils;
|
||||||
|
|
||||||
|
procedure gettimeofday(var tv:ttimeval);inline;
|
||||||
|
begin
|
||||||
|
fpgettimeofday(@tv,nil);
|
||||||
|
end;
|
||||||
|
function gettimeofdaysec : longint;inline;
|
||||||
|
var
|
||||||
|
tv:ttimeval;
|
||||||
|
begin
|
||||||
|
gettimeofday(tv);
|
||||||
|
result := tv.tv_sec;
|
||||||
|
end;
|
||||||
|
end.
|
||||||
|
|
7
tests/webtbs/tw3567.pp
Normal file
7
tests/webtbs/tw3567.pp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{ %opt=-Sew }
|
||||||
|
|
||||||
|
(*$WEAKPACKAGEUNIT*)
|
||||||
|
(*$HPPEMIT '#include "some_include.h"' *)
|
||||||
|
(*$NODEFINE xxx*)
|
||||||
|
begin
|
||||||
|
end.
|
Loading…
Reference in New Issue
Block a user