* pretty basic InterlockedCompareExchange test

git-svn-id: trunk@6799 -
This commit is contained in:
florian 2007-03-11 22:39:51 +00:00
parent 87bc8a4471
commit 8ec185eb10
2 changed files with 11 additions and 0 deletions

1
.gitattributes vendored
View File

@ -6945,6 +6945,7 @@ tests/test/units/sharemem/test1.pp svneol=native#text/plain
tests/test/units/softfpu/sfttst.pp svneol=native#text/plain
tests/test/units/strings/tstrcopy.pp svneol=native#text/plain
tests/test/units/strings/tstrings1.pp svneol=native#text/plain
tests/test/units/system/interlocked1.pp svneol=native#text/plain
tests/test/units/system/tabs.pp svneol=native#text/plain
tests/test/units/system/targs.pp svneol=native#text/plain
tests/test/units/system/tassert1.pp svneol=native#text/plain

View File

@ -0,0 +1,10 @@
var
target : longint;
begin
target:=1234;
InterLockedCompareExchange(target,4321,1234);
if target<>4321 then
halt(1);
writeln('ok');
end.