Browse Source

Add check for absolute word type

git-svn-id: trunk@29091 -
pierre 10 years ago
parent
commit
d98a7d39f5
1 changed files with 4 additions and 0 deletions
  1. 4 0
      tests/webtbs/tw8513.pp

+ 4 - 0
tests/webtbs/tw8513.pp

@@ -14,6 +14,7 @@ end;
 var
 var
   Item: TMyType;
   Item: TMyType;
   ItemAsByte: byte absolute Item;
   ItemAsByte: byte absolute Item;
+  ItemAsWord: word absolute Item;
 
 
   r: tr;
   r: tr;
   b: byte absolute r.b;
   b: byte absolute r.b;
@@ -40,6 +41,9 @@ begin
   if (itemasbyte <> $de) then
   if (itemasbyte <> $de) then
     halt(1);
     halt(1);
 
 
+  if (itemasword <> $dead) then
+    halt(3);
+
   r.a := $de;
   r.a := $de;
   r.b := $ad;
   r.b := $ad;
   r.c := $be;
   r.c := $be;