mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-10 07:08:56 +02:00
* make asciinr string long enough for binary char constants as pointed out by Matti Kronman, resolves #20821
git-svn-id: trunk@19782 -
This commit is contained in:
parent
76b9d7e766
commit
4a79262728
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -11943,6 +11943,7 @@ tests/webtbs/tw2069.pp svneol=native#text/plain
|
||||
tests/webtbs/tw20690.pp svneol=native#text/pascal
|
||||
tests/webtbs/tw2072.pp svneol=native#text/plain
|
||||
tests/webtbs/tw20744.pp svneol=native#text/plain
|
||||
tests/webtbs/tw20821.pp svneol=native#text/pascal
|
||||
tests/webtbs/tw20836.pp svneol=native#text/pascal
|
||||
tests/webtbs/tw2109.pp svneol=native#text/plain
|
||||
tests/webtbs/tw2110.pp svneol=native#text/plain
|
||||
|
@ -3711,7 +3711,7 @@ In case not, the value returned can be arbitrary.
|
||||
w : word;
|
||||
m : longint;
|
||||
mac : tmacro;
|
||||
asciinr : string[6];
|
||||
asciinr : string[33];
|
||||
iswidestring : boolean;
|
||||
label
|
||||
exit_label;
|
||||
|
14
tests/webtbs/tw20821.pp
Normal file
14
tests/webtbs/tw20821.pp
Normal file
@ -0,0 +1,14 @@
|
||||
program bug;
|
||||
|
||||
var
|
||||
b : byte;
|
||||
begin
|
||||
b:=170;
|
||||
if b<>Byte(#%10101010) then
|
||||
halt(1);
|
||||
if b<>Byte(%10101010) then
|
||||
halt(1);
|
||||
if b<>Byte(%10101010) then
|
||||
halt(1);
|
||||
WriteLn('Ok');
|
||||
end.
|
Loading…
Reference in New Issue
Block a user