Browse Source

* fix test for m68k that only aligns to words

pierre 23 years ago
parent
commit
5add6af432
1 changed files with 10 additions and 2 deletions
  1. 10 2
      tests/tbs/tb0277.pp

+ 10 - 2
tests/tbs/tb0277.pp

@@ -54,10 +54,18 @@ type
                  4 : ( FocusEvent : FOCUS_EVENT_RECORD );
                  4 : ( FocusEvent : FOCUS_EVENT_RECORD );
        end;
        end;
 
 
+const
+{$ifdef cpu68k}
+  { GNU C only aligns at word boundaries 
+    for m68k cpu PM }
+  correct_size = 18;
+{$else }
+  correct_size = 20;
+{$endif }  
 begin
 begin
-  if sizeof(INPUT_RECORD)<>20 then
+  if sizeof(INPUT_RECORD)<>correct_size then
    begin
    begin
-     writeln('Wrong packing for Packrecords C and union ',sizeof(INPUT_RECORD),' instead of ',20);
+     writeln('Wrong packing for Packrecords C and union ',sizeof(INPUT_RECORD),' instead of ',correct_size);
      halt(1);
      halt(1);
    end;
    end;
 end.
 end.