mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 22:09:32 +02:00
tests: fix test
git-svn-id: trunk@14474 -
This commit is contained in:
parent
87849e1fc6
commit
3fff90de80
@ -1,6 +1,7 @@
|
|||||||
{$ifdef fpc}
|
{$ifdef fpc}
|
||||||
{$mode delphi}
|
{$mode delphi}
|
||||||
{$endif}
|
{$endif}
|
||||||
|
program tw9347b;
|
||||||
|
|
||||||
{$r-}
|
{$r-}
|
||||||
uses
|
uses
|
||||||
@ -17,6 +18,12 @@ type
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
{ fails in Delphi 6, succeeds in Delphi 7 }
|
{ fails in Delphi 6, succeeds in Delphi 7, fails in D2007 }
|
||||||
SetPropValue(TBla.Create, 'int', 'true');
|
try
|
||||||
|
SetPropValue(TBla.Create, 'int', 'true');
|
||||||
|
except
|
||||||
|
on E: EVariantError do
|
||||||
|
halt(0);
|
||||||
|
end;
|
||||||
|
halt(1);
|
||||||
end.
|
end.
|
||||||
|
Loading…
Reference in New Issue
Block a user