bug0299.pp 370 B

12345678910111213141516171819202122
  1. type
  2. TwoChar = Array[0..1] of char;
  3. Empty = Record
  4. End;
  5. const
  6. asd : TwoChar = ('a','b');
  7. procedure Tester(i:TwoChar; a: Empty;l : longint);
  8. begin
  9. i[0]:=i[1];
  10. Writeln('l = ',l,' @l = ',hexstr(longint(@l),8),' @a = ',hexstr(longint(@a),8));
  11. end;
  12. var
  13. a : Empty;
  14. l : longint;
  15. begin
  16. l:=6;
  17. Writeln(Sizeof(asd));
  18. Tester(asd,a,l);
  19. Writeln(asd);
  20. end.