mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-05-31 09:42:36 +02:00
new files
This commit is contained in:
parent
d8d25ef6de
commit
fc79a7c2ab
17
tests/webtbs/tbug890.pp
Normal file
17
tests/webtbs/tbug890.pp
Normal file
@ -0,0 +1,17 @@
|
||||
{$MODE TP }
|
||||
|
||||
unit tbug890;
|
||||
|
||||
INTERFACE
|
||||
|
||||
procedure GetScreenLine(const x: Integer);
|
||||
|
||||
IMPLEMENTATION
|
||||
|
||||
procedure GetScreenLine(x: Integer);
|
||||
begin
|
||||
x:=5;
|
||||
end;
|
||||
|
||||
begin
|
||||
end.
|
25
tests/webtbs/tbug891.pp
Normal file
25
tests/webtbs/tbug891.pp
Normal file
@ -0,0 +1,25 @@
|
||||
{ this declaration: ;}
|
||||
{$mode TP}
|
||||
var
|
||||
name_a : packed array[0..255] of char;
|
||||
|
||||
const
|
||||
name_b : PChar = 'test';
|
||||
|
||||
begin
|
||||
{ the FPC compiler (0.99.14a) will refuse to compile
|
||||
the line ; }
|
||||
|
||||
if (name_b <> name_a) then
|
||||
writeln(' a and b are different');
|
||||
{ while it works under Turbo Pascal (TP). ;}
|
||||
if (name_b <> PChar(name_a)) then
|
||||
writeln(' a and b are different');
|
||||
{ is a legal FPC line, but illegal in TP.}
|
||||
|
||||
{ I used ; }
|
||||
if (name_b <> PChar(@name_a)) then
|
||||
writeln(' a and b are different');
|
||||
{because it seems to work for both compiler.}
|
||||
|
||||
end.
|
14
tests/webtbs/tbug895.pp
Normal file
14
tests/webtbs/tbug895.pp
Normal file
@ -0,0 +1,14 @@
|
||||
program bug;
|
||||
|
||||
begin
|
||||
{$I-}
|
||||
mkdir('test895');
|
||||
InOutRes:=0;
|
||||
{$I+}
|
||||
writeln('This is a test');
|
||||
{$I-}
|
||||
mkdir('test895');
|
||||
InOutRes:=0;
|
||||
{$I+}
|
||||
writeln('This is a test');
|
||||
end.
|
Loading…
Reference in New Issue
Block a user