@@ -1,13 +0,0 @@
-{ %FAIL }
-{ Old file: tbf0036.pp }
-{ assigning a single character to array of char ?OK 0.9.9 }
-
-program bug0036;
-{Discovered by Daniel Mantione.}
-var a:array[0..31] of char;
-begin
- a:=' '; {Incorrect Pascal statement, but why a protection error?}
-end.
@@ -1,3 +1,5 @@
+{ %fail }
+
{$mode delphi}
var
@@ -1,4 +1,5 @@
{ %OPT=-Un }
+{ %RECOMPILE }
{ Old file: tbs0180.pp }
{ problem for units with names different from file name should be accepted with -Un !! Solved, but you still need to use the file name from other units OK 0.99.9 (PM) }
+{ %version=1.1 }
{$ifdef fpc}{$MODE OBJFPC}{$endif}
uses sysutils;
uses ub0380;
procedure p1(s:string);overload;
begin
{$ifdef fpc}{$mode objfpc}{$endif}
uses ub0386;
type
uses ub0391;
@@ -9,11 +9,14 @@ var r:trec; s:ansistring;
s:=chr(ord('A')+random(26));
r.s:=s;
+ writeln('init');
if plongint(pointer(s)-4)^<>3 then
halt(1);
+ writeln('p1()');
p1(r);
+ writeln('p2()');
p2(r);