mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-01 13:11:06 +02:00
+ added more tests for SPARC code generator
This commit is contained in:
parent
3610d66be1
commit
8e001b765a
10
tests/sparc/test0006.pas
Normal file
10
tests/sparc/test0006.pas
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{$UNITPATH ../../rtl/linux}
|
||||||
|
{$INCLUDEPATH ../../rtl/unix;../../rtl/inc;../../rtl/unix;../../rtl/sparc}
|
||||||
|
PROGRAM SparcTest;
|
||||||
|
VAR
|
||||||
|
i:Integer;
|
||||||
|
BEGIN
|
||||||
|
IF(i>0)
|
||||||
|
THEN
|
||||||
|
WriteLn(i);
|
||||||
|
END.
|
10
tests/sparc/test0007.pas
Normal file
10
tests/sparc/test0007.pas
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{$UNITPATH ../../rtl/linux}
|
||||||
|
{$INCLUDEPATH ../../rtl/unix;../../rtl/inc;../../rtl/unix;../../rtl/sparc}
|
||||||
|
PROGRAM SparcTest;
|
||||||
|
VAR
|
||||||
|
c:Char;
|
||||||
|
BEGIN
|
||||||
|
IF(c='0')
|
||||||
|
THEN
|
||||||
|
WriteLn(c);
|
||||||
|
END.
|
15
tests/sparc/test0008.pas
Normal file
15
tests/sparc/test0008.pas
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{$UNITPATH ../../rtl/linux}
|
||||||
|
{$INCLUDEPATH ../../rtl/unix;../../rtl/inc;../../rtl/unix;../../rtl/sparc}
|
||||||
|
PROGRAM SparcTest;
|
||||||
|
VAR
|
||||||
|
c:Char;
|
||||||
|
BEGIN
|
||||||
|
CASE c OF
|
||||||
|
'0':
|
||||||
|
WriteLn(0);
|
||||||
|
'1':
|
||||||
|
WriteLn(1);
|
||||||
|
'2':
|
||||||
|
WriteLn('2');
|
||||||
|
END;
|
||||||
|
END.
|
Loading…
Reference in New Issue
Block a user