mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 02:48:07 +02:00
* 0 is a valid label in iso mode, resolves #37428
git-svn-id: trunk@46362 -
This commit is contained in:
parent
cbb395fa0c
commit
6dac888ae5
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -18407,6 +18407,7 @@ tests/webtbs/tw37400.pp svneol=native#text/pascal
|
||||
tests/webtbs/tw3742.pp svneol=native#text/plain
|
||||
tests/webtbs/tw37423.pp svneol=native#text/plain
|
||||
tests/webtbs/tw37427.pp svneol=native#text/pascal
|
||||
tests/webtbs/tw37428.pp svneol=native#text/pascal
|
||||
tests/webtbs/tw37449.pp svneol=native#text/pascal
|
||||
tests/webtbs/tw37468.pp svneol=native#text/pascal
|
||||
tests/webtbs/tw37477.pp svneol=native#text/pascal
|
||||
|
@ -390,7 +390,7 @@ implementation
|
||||
begin
|
||||
{ strip leading 0's in iso mode }
|
||||
if (([m_iso,m_extpas]*current_settings.modeswitches)<>[]) then
|
||||
while pattern[1]='0' do
|
||||
while (length(pattern)>1) and (pattern[1]='0') do
|
||||
delete(pattern,1,1);
|
||||
labelsym:=clabelsym.create(pattern);
|
||||
end;
|
||||
|
@ -1168,7 +1168,7 @@ implementation
|
||||
|
||||
{ strip leading 0's in iso mode }
|
||||
if (([m_iso,m_extpas]*current_settings.modeswitches)<>[]) then
|
||||
while pattern[1]='0' do
|
||||
while (length(pattern)>1) and (pattern[1]='0') do
|
||||
delete(pattern,1,1);
|
||||
|
||||
searchsym(pattern,srsym,srsymtable);
|
||||
|
8
tests/webtbs/tw37428.pp
Normal file
8
tests/webtbs/tw37428.pp
Normal file
@ -0,0 +1,8 @@
|
||||
{$mode iso}
|
||||
label
|
||||
0;
|
||||
|
||||
begin
|
||||
0:
|
||||
writeln('ok');
|
||||
end.
|
Loading…
Reference in New Issue
Block a user