mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-05 14:48:18 +02:00
17 lines
221 B
ObjectPascal
17 lines
221 B
ObjectPascal
{$mode macpas}
|
|
program unary;
|
|
var
|
|
i : longint;
|
|
begin
|
|
if -2 shr 1<>-1 then
|
|
halt(1);
|
|
if -2-2<>-4 then
|
|
halt(1);
|
|
i:=2;
|
|
if -i shr 1<>-1 then
|
|
halt(1);
|
|
if -i-i<>-4 then
|
|
halt(1);
|
|
writeln('ok');
|
|
end.
|