tw1909.pp 595 B

123456789101112131415161718192021222324252627282930313233
  1. {$inline on }
  2. {$mode objfpc}
  3. var
  4. global_u8bit : byte;
  5. value_u8bit : byte;
  6. procedure proc_value_smallarray_const_1_inline(arr : array of const);inline;
  7. var
  8. i: integer;
  9. begin
  10. for i:=0 to high(arr) do
  11. begin
  12. case arr[i].vtype of
  13. vtInteger : global_u8bit := arr[i].vinteger and $ff;
  14. else
  15. RunError(255);
  16. end;
  17. end; {endfor}
  18. end;
  19. begin
  20. value_u8bit:=133;
  21. proc_value_smallarray_const_1_inline([value_u8bit]);
  22. if global_u8bit <> 133 then
  23. begin
  24. Writeln('Error in inline code generation');
  25. Halt(1);
  26. end;
  27. end.