mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-05 15:18:32 +02:00
* runtime check added
This commit is contained in:
parent
9b6bd8d58e
commit
71b5cd69d7
@ -4,7 +4,6 @@
|
||||
Program bugtest;
|
||||
|
||||
{$Mode ObjFPC}
|
||||
{ $Define bug_workaround}
|
||||
uses classes;
|
||||
|
||||
type
|
||||
@ -19,11 +18,12 @@ 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);
|
||||
if TestClass.TestString<>'Whatever' then
|
||||
begin
|
||||
writeln('Error!');
|
||||
halt(1);
|
||||
end;
|
||||
TestClass.Free;
|
||||
end.
|
||||
|
Loading…
Reference in New Issue
Block a user