[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gm2] Bug Report
From: |
Martin Kalbfuß |
Subject: |
[Gm2] Bug Report |
Date: |
Mon, 31 Oct 2011 21:39:57 +0100 |
I think I found a bug. The following program produces this output:
--- output ---
33
147499624
--- module ---
MODULE Test;
IMPORT
SWholeIO,
STextIO;
TYPE
Matrix = ARRAY [0..2], [0..2] OF CARDINAL;
CONST
testMatrix = Matrix{{11, 12, 13}, {21, 22, 23}, {31, 32, 33}};
PROCEDURE printMatrix(matrix : ARRAY OF ARRAY OF CARDINAL);
BEGIN
SWholeIO.WriteCard(matrix[2, 2], 3);
END printMatrix;
BEGIN
SWholeIO.WriteCard(testMatrix[2, 2], 3);
STextIO.WriteLn();
printMatrix(testMatrix);
STextIO.WriteLn();
END Test.
compiler version is GNU Modula-2 1.0.3 (20111001)
system is Ubuntu 11.04 -- I used the package.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gm2] Bug Report,
Martin Kalbfuß <=