mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-14 11:39:27 +02:00
Test fix of infinite loop in PUSH/POP directives
git-svn-id: trunk@18142 -
This commit is contained in:
parent
c43b91ef15
commit
7b5196a4bc
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -11707,6 +11707,7 @@ tests/webtbs/tw1950.pp svneol=native#text/plain
|
||||
tests/webtbs/tw19548.pp svneol=native#text/pascal
|
||||
tests/webtbs/tw1964.pp svneol=native#text/plain
|
||||
tests/webtbs/tw19700.pp svneol=native#text/plain
|
||||
tests/webtbs/tw19864.pp svneol=native#text/pascal
|
||||
tests/webtbs/tw1996.pp svneol=native#text/plain
|
||||
tests/webtbs/tw2001.pp svneol=native#text/plain
|
||||
tests/webtbs/tw2002.pp svneol=native#text/plain
|
||||
|
32
tests/webtbs/tw19864.pp
Normal file
32
tests/webtbs/tw19864.pp
Normal file
@ -0,0 +1,32 @@
|
||||
{ %NORUN }
|
||||
unit tw19864;
|
||||
|
||||
{$mode objfpc}
|
||||
|
||||
interface
|
||||
|
||||
implementation
|
||||
|
||||
procedure testfun;
|
||||
begin
|
||||
{$WARN SYMBOL_PLATFORM OFF}
|
||||
{$WARN SYMBOL_PLATFORM ON}
|
||||
{$PUSH}{$R-,Q-}
|
||||
{$POP}
|
||||
{$PUSH}{$R-,Q-}
|
||||
{$POP}
|
||||
end;
|
||||
{$WARN SYMBOL_PLATFORM OFF}
|
||||
var
|
||||
test1 : longint platform;
|
||||
{$WARN SYMBOL_PLATFORM ON}
|
||||
|
||||
var
|
||||
test2 : longint platform;
|
||||
|
||||
begin
|
||||
{$WARN SYMBOL_PLATFORM OFF}
|
||||
test2:=2;
|
||||
{$WARN SYMBOL_PLATFORM ON}
|
||||
test1:=1;
|
||||
end.
|
Loading…
Reference in New Issue
Block a user