Browse Source

* test should fail

peter 22 năm trước cách đây
mục cha
commit
0fb8abc4c9
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      tests/webtbf/tw2285.pp

+ 4 - 0
tests/webtbs/tw2285.pp → tests/webtbf/tw2285.pp

@@ -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: [email protected] }
 { e-mail: [email protected] }
@@ -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);