mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-09 22:06:08 +02:00
* fixed s<'', fixes 4925
git-svn-id: trunk@3505 -
This commit is contained in:
parent
9b75d87b55
commit
5d9f3cf33d
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -6802,6 +6802,7 @@ tests/webtbs/tw4893c.pp svneol=native#text/plain
|
|||||||
tests/webtbs/tw4898.pp -text
|
tests/webtbs/tw4898.pp -text
|
||||||
tests/webtbs/tw4902.pp -text
|
tests/webtbs/tw4902.pp -text
|
||||||
tests/webtbs/tw4922.pp svneol=native#text/plain
|
tests/webtbs/tw4922.pp svneol=native#text/plain
|
||||||
|
tests/webtbs/tw4925.pp svneol=native#text/plain
|
||||||
tests/webtbs/tw4950.pp svneol=native#text/plain
|
tests/webtbs/tw4950.pp svneol=native#text/plain
|
||||||
tests/webtbs/tw4999.pp svneol=native#text/plain
|
tests/webtbs/tw4999.pp svneol=native#text/plain
|
||||||
tests/webtbs/tw5001.pp svneol=native#text/plain
|
tests/webtbs/tw5001.pp svneol=native#text/plain
|
||||||
|
@ -1551,6 +1551,8 @@ implementation
|
|||||||
|
|
||||||
|
|
||||||
function taddnode.first_addstring: tnode;
|
function taddnode.first_addstring: tnode;
|
||||||
|
const
|
||||||
|
swap_relation: array [ltn..unequaln] of Tnodetype=(gtn, gten, ltn, lten, equaln, unequaln);
|
||||||
var
|
var
|
||||||
p: tnode;
|
p: tnode;
|
||||||
begin
|
begin
|
||||||
@ -1581,6 +1583,7 @@ implementation
|
|||||||
p := left;
|
p := left;
|
||||||
left := right;
|
left := right;
|
||||||
right := p;
|
right := p;
|
||||||
|
nodetype:=swap_relation[nodetype];
|
||||||
end;
|
end;
|
||||||
if is_shortstring(left.resulttype.def) or
|
if is_shortstring(left.resulttype.def) or
|
||||||
(nodetype in [gtn,gten,ltn,lten]) then
|
(nodetype in [gtn,gten,ltn,lten]) then
|
||||||
|
7
tests/webtbs/tw4925.pp
Normal file
7
tests/webtbs/tw4925.pp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
var
|
||||||
|
s : string;
|
||||||
|
begin
|
||||||
|
s:='asdf';
|
||||||
|
if not(''<s) then
|
||||||
|
halt(1);
|
||||||
|
end.
|
Loading…
Reference in New Issue
Block a user