mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-05 12:50:23 +02:00
+ new test
git-svn-id: trunk@3567 -
This commit is contained in:
parent
55962cef95
commit
5e4776f4ce
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -6818,6 +6818,7 @@ tests/webtbs/tw5023.pp svneol=native#text/plain
|
||||
tests/webtbs/tw5036.pp svneol=native#text/plain
|
||||
tests/webtbs/tw5082.pp -text svneol=unset#text/plain
|
||||
tests/webtbs/tw6491.pp svneol=native#text/plain
|
||||
tests/webtbs/tw6684.pp svneol=native#text/plain
|
||||
tests/webtbs/tw6742.pp svneol=native#text/plain
|
||||
tests/webtbs/ub1873.pp svneol=native#text/plain
|
||||
tests/webtbs/ub1883.pp svneol=native#text/plain
|
||||
|
18
tests/webtbs/tw6684.pp
Normal file
18
tests/webtbs/tw6684.pp
Normal file
@ -0,0 +1,18 @@
|
||||
Var
|
||||
D : LongInt;
|
||||
d1,d2 : int64;
|
||||
|
||||
Begin
|
||||
D := -100;
|
||||
{$OVERFLOWCHECKS on}
|
||||
Writeln(2 * D);
|
||||
d1:=d*2;
|
||||
{$OVERFLOWCHECKS off}
|
||||
Writeln(2 * D);
|
||||
d2:=d*2;
|
||||
if d1<>-200 then
|
||||
halt(1);
|
||||
if d2<>-200 then
|
||||
halt(1);
|
||||
writeln('ok');
|
||||
End.
|
Loading…
Reference in New Issue
Block a user