mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-12 12:10:42 +01:00
+ added just to test RTL compilation
This commit is contained in:
parent
e0451e6641
commit
edcc7cc4af
@ -1,20 +1,12 @@
|
|||||||
|
{ $Id$ }
|
||||||
{$UNITPATH ../../rtl/linux}
|
{$UNITPATH ../../rtl/linux}
|
||||||
{$INCLUDEPATH ../../rtl/unix;../../rtl/inc;../../rtl/unix;../../rtl/sparc}
|
{$INCLUDEPATH ../../rtl/unix;../../rtl/inc;../../rtl/unix;../../rtl/sparc}
|
||||||
PROGRAM SparcTest;
|
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;
|
|
||||||
BEGIN
|
BEGIN
|
||||||
y:=0;
|
|
||||||
z:=0;
|
|
||||||
x:=1+y;
|
|
||||||
x:=Add(x,y);
|
|
||||||
END.
|
END.
|
||||||
|
{
|
||||||
|
$Log$
|
||||||
|
Revision 1.5 2002-12-06 08:35:50 mazen
|
||||||
|
+ added just to test RTL compilation
|
||||||
|
|
||||||
|
}
|
||||||
|
|||||||
20
tests/sparc/test.pas
Normal file
20
tests/sparc/test.pas
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{$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;
|
||||||
|
BEGIN
|
||||||
|
y:=0;
|
||||||
|
z:=0;
|
||||||
|
x:=1+y;
|
||||||
|
x:=Add(x,y);
|
||||||
|
END.
|
||||||
Loading…
Reference in New Issue
Block a user