mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 21:48:35 +02:00
* new tests
This commit is contained in:
parent
54cf569474
commit
6df85c8a5a
17
tests/tbf/tb0110.pp
Normal file
17
tests/tbf/tb0110.pp
Normal file
@ -0,0 +1,17 @@
|
||||
{ %FAIL }
|
||||
|
||||
{$mode delphi}
|
||||
|
||||
var
|
||||
{ The next line should give an error as it's to big to allocate }
|
||||
a: array [ Integer ] of Integer;
|
||||
i: Integer;
|
||||
|
||||
begin
|
||||
|
||||
for i := 0 to 1000 do begin
|
||||
a [ i ] := i
|
||||
end { for i }
|
||||
|
||||
; writeln ( a [ 1000 ] )
|
||||
end.
|
8
tests/tbs/tb0378.pp
Normal file
8
tests/tbs/tb0378.pp
Normal file
@ -0,0 +1,8 @@
|
||||
{$mode delphi}
|
||||
|
||||
procedure p();
|
||||
begin
|
||||
end;
|
||||
|
||||
begin
|
||||
end.
|
13
tests/tbs/tb0379.pp
Normal file
13
tests/tbs/tb0379.pp
Normal file
@ -0,0 +1,13 @@
|
||||
{$mode delphi}
|
||||
|
||||
var
|
||||
i: Int64;
|
||||
|
||||
begin
|
||||
|
||||
for i := 1 to 10 do begin
|
||||
write ( '*' )
|
||||
end { for i }
|
||||
|
||||
; writeln
|
||||
end.
|
8
tests/tbs/tb0380.pp
Normal file
8
tests/tbs/tb0380.pp
Normal file
@ -0,0 +1,8 @@
|
||||
uses ub0380;
|
||||
procedure p1(s:string);overload;
|
||||
begin
|
||||
end;
|
||||
|
||||
begin
|
||||
p1(1);
|
||||
end.
|
8
tests/tbs/ub0380.pp
Normal file
8
tests/tbs/ub0380.pp
Normal file
@ -0,0 +1,8 @@
|
||||
unit ub0380;
|
||||
interface
|
||||
procedure p1(i:integer);overload;
|
||||
implementation
|
||||
procedure p1(i:integer);overload;
|
||||
begin
|
||||
end;
|
||||
end.
|
Loading…
Reference in New Issue
Block a user