mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-13 15:39:29 +02:00
* another old test added
git-svn-id: trunk@5161 -
This commit is contained in:
parent
b95ffda72a
commit
409ee19a83
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -6319,6 +6319,7 @@ tests/test/tclass6.pp svneol=native#text/plain
|
||||
tests/test/tclass7.pp svneol=native#text/plain
|
||||
tests/test/tclass8.pp svneol=native#text/plain
|
||||
tests/test/tclrprop.pp svneol=native#text/plain
|
||||
tests/test/tendian1.pp svneol=native#text/plain
|
||||
tests/test/tenum1.pp svneol=native#text/plain
|
||||
tests/test/testcmem.pp svneol=native#text/plain
|
||||
tests/test/testda1.pp svneol=native#text/plain
|
||||
|
10
tests/test/tendian1.pp
Normal file
10
tests/test/tendian1.pp
Normal file
@ -0,0 +1,10 @@
|
||||
var
|
||||
l : dword;
|
||||
begin
|
||||
l:=$deadbeef;
|
||||
if SwapEndian(l)=l then
|
||||
halt(1);
|
||||
if SwapEndian(SwapEndian(l))<>l then
|
||||
halt(1);
|
||||
writeln('ok');
|
||||
end.
|
Loading…
Reference in New Issue
Block a user