summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gm2/cse/pass/testcse51.mod
blob: d9a1f85c7b2aeeb3182cff5e21bb33a6506c3ee6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
(* Copyright (C) 2005 Free Software Foundation, Inc. *)
(* This file is part of GNU Modula-2.

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA *)

MODULE testcse51 ;

FROM NumberIO IMPORT WriteCard ;

VAR
   MapDist: ARRAY [0..10], [0..10] OF CARDINAL ;

BEGIN
   MapDist[2,2] := 2 ;
   WriteCard(MapDist[0,0], 4)
END testcse51.