* test should fail

This commit is contained in:
peter 2003-01-15 00:04:19 +00:00
parent ea989e01cc
commit 0fb8abc4c9

View File

@ -1,3 +1,5 @@
{ %fail }
{ Source provided for Free Pascal Bug Report 2285 }
{ Submitted by "Sergey Kosarevsky" on 2002-12-25 }
{ e-mail: netsurfer@au.ru }
@ -21,6 +23,8 @@ Begin
End;
Begin
{ This should fail, @tobject.init returns a pointer and
is not compatible with a methodpointer }
CheckConstructor(@tObject.Init);
b:=Longint(Pointer(@tObject.Init));
WriteLn('b: ',b);