mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 19:29:26 +02:00
+ tests for previous commit
git-svn-id: trunk@4958 -
This commit is contained in:
parent
2dd6a91a9f
commit
de27a80cc9
2
.gitattributes
vendored
2
.gitattributes
vendored
@ -6327,6 +6327,8 @@ tests/test/tinline3.pp svneol=native#text/plain
|
||||
tests/test/tinline4.pp svneol=native#text/plain
|
||||
tests/test/tinline5.pp -text
|
||||
tests/test/tinline6.pp svneol=native#text/plain
|
||||
tests/test/tint2str1.pp svneol=native#text/plain
|
||||
tests/test/tint2str2.pp svneol=native#text/plain
|
||||
tests/test/tint641.pp svneol=native#text/plain
|
||||
tests/test/tint642.pp svneol=native#text/plain
|
||||
tests/test/tint643.pp svneol=native#text/plain
|
||||
|
14
tests/test/tint2str1.pp
Normal file
14
tests/test/tint2str1.pp
Normal file
@ -0,0 +1,14 @@
|
||||
{$mode macpas}
|
||||
|
||||
procedure test(s: string);
|
||||
begin
|
||||
if s <> 'abcd' then
|
||||
halt(1);
|
||||
end;
|
||||
|
||||
var
|
||||
l: longint;
|
||||
begin
|
||||
l := 'abcd';
|
||||
test(l);
|
||||
end.
|
15
tests/test/tint2str2.pp
Normal file
15
tests/test/tint2str2.pp
Normal file
@ -0,0 +1,15 @@
|
||||
{% fail}
|
||||
|
||||
{$mode fpc}
|
||||
|
||||
procedure test(s: string);
|
||||
begin
|
||||
halt(0);
|
||||
end;
|
||||
|
||||
var
|
||||
l: longint;
|
||||
begin
|
||||
l := 'abcd';
|
||||
test(l);
|
||||
end.
|
Loading…
Reference in New Issue
Block a user