mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 00:29:20 +02:00
+ support exit();
git-svn-id: trunk@1802 -
This commit is contained in:
parent
3366ba05ac
commit
350c886460
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -6372,6 +6372,7 @@ tests/webtbs/tw4477.pp svneol=native#text/plain
|
|||||||
tests/webtbs/tw4487.pp -text svneol=unset#text/plain
|
tests/webtbs/tw4487.pp -text svneol=unset#text/plain
|
||||||
tests/webtbs/tw4489.pp -text svneol=unset#text/plain
|
tests/webtbs/tw4489.pp -text svneol=unset#text/plain
|
||||||
tests/webtbs/tw4496.pp svneol=native#text/plain
|
tests/webtbs/tw4496.pp svneol=native#text/plain
|
||||||
|
tests/webtbs/tw4537.pp svneol=native#text/plain
|
||||||
tests/webtbs/ub1873.pp svneol=native#text/plain
|
tests/webtbs/ub1873.pp svneol=native#text/plain
|
||||||
tests/webtbs/ub1883.pp svneol=native#text/plain
|
tests/webtbs/ub1883.pp svneol=native#text/plain
|
||||||
tests/webtbs/uw0555.pp svneol=native#text/plain
|
tests/webtbs/uw0555.pp svneol=native#text/plain
|
||||||
|
@ -376,6 +376,8 @@ implementation
|
|||||||
if try_to_consume(_LKLAMMER) then
|
if try_to_consume(_LKLAMMER) then
|
||||||
begin
|
begin
|
||||||
if not (m_mac in aktmodeswitches) then
|
if not (m_mac in aktmodeswitches) then
|
||||||
|
begin
|
||||||
|
if not(try_to_consume(_RKLAMMER)) then
|
||||||
begin
|
begin
|
||||||
p1:=comp_expr(true);
|
p1:=comp_expr(true);
|
||||||
consume(_RKLAMMER);
|
consume(_RKLAMMER);
|
||||||
@ -395,6 +397,9 @@ implementation
|
|||||||
p1:=nil;
|
p1:=nil;
|
||||||
end;
|
end;
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
p1:=nil;
|
||||||
|
end
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
if not (current_procinfo.procdef.procsym.name = pattern) then
|
if not (current_procinfo.procdef.procsym.name = pattern) then
|
||||||
|
12
tests/webtbs/tw4537.pp
Normal file
12
tests/webtbs/tw4537.pp
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
procedure foo;
|
||||||
|
begin
|
||||||
|
exit();
|
||||||
|
end;
|
||||||
|
|
||||||
|
function bar: integer;
|
||||||
|
begin
|
||||||
|
exit(42);
|
||||||
|
end;
|
||||||
|
|
||||||
|
begin
|
||||||
|
end.
|
Loading…
Reference in New Issue
Block a user