浏览代码

* fix test for msdos compact mode

git-svn-id: trunk@34268 -
pierre 9 年之前
父节点
当前提交
358eb38ef2
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      tests/tbs/tb0163.pp

+ 5 - 1
tests/tbs/tb0163.pp

@@ -27,8 +27,12 @@ Begin
    f:=@dummy;
    f:=@dummy;
    if f()<>25 then
    if f()<>25 then
      Wrong('f() does not call dummy !!');
      Wrong('f() does not call dummy !!');
-   if pointer(@f)=pointer(@dummy) then
+{$if sizeof(Codepointer)=sizeof(pointer) }
+   if pointer(@f)=codepointer(@dummy) then
      Wrong('@f returns value of f !');
      Wrong('@f returns value of f !');
+{$else}
+   Writeln('address of variable and functions of different size');
+{$endif}
    if longint(f)=longint(@f) then
    if longint(f)=longint(@f) then
      Wrong('longint(@f)=longint(f) !!!!');
      Wrong('longint(@f)=longint(f) !!!!');
    if f<>@dummy then
    if f<>@dummy then