* test for unaligned function

git-svn-id: trunk@3368 -
This commit is contained in:
florian 2006-04-29 19:44:50 +00:00
parent 111b588950
commit f72f9c70eb
2 changed files with 13 additions and 0 deletions

1
.gitattributes vendored
View File

@ -5753,6 +5753,7 @@ tests/test/tstrreal1.pp svneol=native#text/plain
tests/test/tstrreal2.pp svneol=native#text/plain
tests/test/tstrreal3.pp -text
tests/test/tsubdecl.pp svneol=native#text/plain
tests/test/tunaligned1.pp svneol=native#text/plain
tests/test/tunit1.pp svneol=native#text/plain
tests/test/tunit2.pp svneol=native#text/plain
tests/test/tunit3.pp svneol=native#text/plain

12
tests/test/tunaligned1.pp Normal file
View File

@ -0,0 +1,12 @@
var
r1 : packed record
dummy : byte;
a,b : longint;
end;
begin
r1.a:=unaligned(r1.b)*2;
unaligned(r1.a):=r1.b*2;
r1.a:=r1.b;
r1.a:=r1.b div 10;
end.