mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-05-17 20:02:35 +02:00
* this test is used to test writeLn for strigs
This commit is contained in:
parent
ed1ba5dc1c
commit
1cb61aec61
@ -1,20 +1,8 @@
|
||||
{$UNITPATH ../../rtl/linux}
|
||||
{$INCLUDEPATH ../../rtl/unix;../../rtl/inc;../../rtl/unix;../../rtl/sparc}
|
||||
PROGRAM SparcTest;
|
||||
VAR
|
||||
x,y:Cardinal;
|
||||
z:0..255;
|
||||
FUNCTION CopyMe(x:Cardinal):Cardinal;
|
||||
BEGIN
|
||||
CopyMe:=x;
|
||||
END;
|
||||
FUNCTION Add(a,b:Cardinal):Cardinal;
|
||||
BEGIN
|
||||
Add:=a+b;
|
||||
END;
|
||||
CONST
|
||||
s:STRING='Hello World!';
|
||||
BEGIN
|
||||
y:=0;
|
||||
z:=0;
|
||||
x:=1+y;
|
||||
x:=Add(x,y);
|
||||
WriteLn(s);
|
||||
END.
|
||||
|
Loading…
Reference in New Issue
Block a user