@@ -1483,7 +1483,7 @@ implementation
begin
Result:=getcopy;
Result.nodetype:=addn;
- right:=cunaryminusnode.create(right);
+ taddnode(result).right:=cunaryminusnode.create(taddnode(result).right);
exit;
end;
@@ -0,0 +1,13 @@
+{$mode objfpc}
+function Shift(x: single): single; noinline;
+begin
+ result := x + 10.0 - 1.0;
+end;
+
+ if Shift(5.0) <> 14.0 then
+ begin
+ writeln('Got ', Shift(5.0):0:1, ', expected 14.0.');
+ halt(1);
+ end;
+end.