Răsfoiți Sursa

* another old test added

git-svn-id: trunk@5161 -
florian 19 ani în urmă
părinte
comite
409ee19a83
2 a modificat fișierele cu 11 adăugiri și 0 ștergeri
  1. 1 0
      .gitattributes
  2. 10 0
      tests/test/tendian1.pp

+ 1 - 0
.gitattributes

@@ -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 - 0
tests/test/tendian1.pp

@@ -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.