mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2026-01-07 12:20:47 +01:00
* new bugs
This commit is contained in:
parent
320f624c4a
commit
239440731b
29
tests/webtbs/tw2196.pp
Normal file
29
tests/webtbs/tw2196.pp
Normal file
@ -0,0 +1,29 @@
|
||||
{ Source provided for Free Pascal Bug Report 2196 }
|
||||
{ Submitted by "Andrew Johnson" on 2002-10-22 }
|
||||
{ e-mail: acjgenius@earthlink.net }
|
||||
Program bugtest;
|
||||
|
||||
{$Mode ObjFPC}
|
||||
{ $Define bug_workaround}
|
||||
uses classes;
|
||||
|
||||
type
|
||||
TSomeClass = Class
|
||||
private
|
||||
FTestString : AnsiString;
|
||||
public
|
||||
Property TestString : AnsiString read FTestString write FTestString;
|
||||
end;
|
||||
|
||||
var
|
||||
TestClass : TSomeClass;
|
||||
begin
|
||||
TestClass := TSomeClass.Create;
|
||||
{$IfDef bug_workaround}
|
||||
TestClass.TestString := '' + TestClass.TestString + 'Whatever';
|
||||
{$Else}
|
||||
TestClass.TestString := TestClass.TestString + 'Whatever';
|
||||
{$EndIF}
|
||||
writeln(TestClass.TestString);
|
||||
TestClass.Free;
|
||||
end.
|
||||
19
tests/webtbs/tw2214.pp
Normal file
19
tests/webtbs/tw2214.pp
Normal file
@ -0,0 +1,19 @@
|
||||
{ Source provided for Free Pascal Bug Report 2214 }
|
||||
{ Submitted by "Marco" on 2002-11-01 }
|
||||
{ e-mail: marco@freepascal.org }
|
||||
|
||||
{$mode objfpc}
|
||||
|
||||
Uses SysUtils;
|
||||
|
||||
function LongLatToDMS(longlat : longint; hemis : string):string;
|
||||
Var ldeg, lmin, lsec, lmsec : extended;
|
||||
hemi : char;
|
||||
begin
|
||||
result := Format('%d %02d %02d.%03d',
|
||||
[round(ldeg), round(lmin), round(lsec),
|
||||
round(lmsec)]) + ' ' + hemi;
|
||||
end;
|
||||
|
||||
begin
|
||||
end.
|
||||
Loading…
Reference in New Issue
Block a user