mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-26 12:03:45 +02:00
27 lines
388 B
ObjectPascal
27 lines
388 B
ObjectPascal
|
|
uses erroru;
|
|
|
|
const
|
|
c : byte = 5;
|
|
r : real = 3.4;
|
|
var
|
|
l : longint;
|
|
cc : char;
|
|
rr : real;
|
|
|
|
begin
|
|
l:=longint(@r);
|
|
if (l mod 4)<>0 then
|
|
begin
|
|
Writeln('static const are not aligned properly !');
|
|
error;
|
|
end;
|
|
cc:='d';
|
|
l:=longint(@rr);
|
|
if (l mod 4)<>0 then
|
|
begin
|
|
Writeln('static var are not aligned properly !');
|
|
error;
|
|
end;
|
|
end.
|