mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-12 17:49:07 +02:00
* pretty basic InterlockedCompareExchange test
git-svn-id: trunk@6799 -
This commit is contained in:
parent
87bc8a4471
commit
8ec185eb10
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -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
|
||||
|
10
tests/test/units/system/interlocked1.pp
Normal file
10
tests/test/units/system/interlocked1.pp
Normal file
@ -0,0 +1,10 @@
|
||||
var
|
||||
target : longint;
|
||||
|
||||
begin
|
||||
target:=1234;
|
||||
InterLockedCompareExchange(target,4321,1234);
|
||||
if target<>4321 then
|
||||
halt(1);
|
||||
writeln('ok');
|
||||
end.
|
Loading…
Reference in New Issue
Block a user