PR modula2/115164 initial test code highlighting the problem
This patch includes some trivial testcode which highlights PR 115164. Expect future test code to perform runtime checks for a series of trailing zeros. gcc/testsuite/ChangeLog: PR modula2/115164 * gm2/isolib/run/pass/testlowread.mod: New test. * gm2/isolib/run/pass/testwritereal.mod: New test. Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
This commit is contained in:
parent
9ff8f04133
commit
d642b66a29
2 changed files with 18 additions and 0 deletions
9
gcc/testsuite/gm2/isolib/run/pass/testlowread.mod
Normal file
9
gcc/testsuite/gm2/isolib/run/pass/testlowread.mod
Normal file
|
@ -0,0 +1,9 @@
|
|||
MODULE testlowread ;
|
||||
|
||||
FROM LowReal IMPORT places ;
|
||||
FROM STextIO IMPORT WriteString, WriteLn ;
|
||||
FROM SWholeIO IMPORT WriteCard ;
|
||||
|
||||
BEGIN
|
||||
WriteString ('value of places = ') ; WriteCard (places, 0) ; WriteLn
|
||||
END testlowread.
|
9
gcc/testsuite/gm2/isolib/run/pass/testwritereal.mod
Normal file
9
gcc/testsuite/gm2/isolib/run/pass/testwritereal.mod
Normal file
|
@ -0,0 +1,9 @@
|
|||
MODULE testwritereal ;
|
||||
|
||||
FROM STextIO IMPORT WriteString, WriteLn ;
|
||||
FROM SRealIO IMPORT WriteFloat ;
|
||||
FROM RealMath IMPORT pi ;
|
||||
|
||||
BEGIN
|
||||
WriteString ('value of pi = ') ; WriteFloat (pi, 0, 0) ; WriteLn
|
||||
END testwritereal.
|
Loading…
Add table
Reference in a new issue