mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 18:30:18 +02:00
* test should fail
This commit is contained in:
parent
ea989e01cc
commit
0fb8abc4c9
@ -1,3 +1,5 @@
|
|||||||
|
{ %fail }
|
||||||
|
|
||||||
{ Source provided for Free Pascal Bug Report 2285 }
|
{ Source provided for Free Pascal Bug Report 2285 }
|
||||||
{ Submitted by "Sergey Kosarevsky" on 2002-12-25 }
|
{ Submitted by "Sergey Kosarevsky" on 2002-12-25 }
|
||||||
{ e-mail: netsurfer@au.ru }
|
{ e-mail: netsurfer@au.ru }
|
||||||
@ -21,6 +23,8 @@ Begin
|
|||||||
End;
|
End;
|
||||||
|
|
||||||
Begin
|
Begin
|
||||||
|
{ This should fail, @tobject.init returns a pointer and
|
||||||
|
is not compatible with a methodpointer }
|
||||||
CheckConstructor(@tObject.Init);
|
CheckConstructor(@tObject.Init);
|
||||||
b:=Longint(Pointer(@tObject.Init));
|
b:=Longint(Pointer(@tObject.Init));
|
||||||
WriteLn('b: ',b);
|
WriteLn('b: ',b);
|
Loading…
Reference in New Issue
Block a user