소스 검색

* test should fail

peter 23 년 전
부모
커밋
0fb8abc4c9
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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 }
 { Submitted by "Sergey Kosarevsky" on  2002-12-25 }
 { e-mail: [email protected] }
@@ -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);