root/trunk/ProjectFortress/tests/arrayTest2.fss

Revision 3550, 1.5 KB (checked in by sukyoungryu, 9 months ago)

[copyright] Fixed the copyright notices.

Line 
1(*******************************************************************************
2    Copyright 2009 Sun Microsystems, Inc.,
3    4150 Network Circle, Santa Clara, California 95054, U.S.A.
4    All rights reserved.
5
6    U.S. Government Rights - Commercial software.
7    Government users are subject to the Sun Microsystems, Inc. standard
8    license agreement and applicable provisions of the FAR and its supplements.
9
10    Use is subject to license terms.
11
12    This distribution may include materials developed by third parties.
13
14    Sun, Sun Microsystems, the Sun logo and Java are trademarks or registered
15    trademarks of Sun Microsystems, Inc. in the U.S. and other countries.
16 ******************************************************************************)
17
18component arrayTest2
19export Executable
20
21run():()=do
22
23  a:ZZ32[2,3,4] = [ 111 121 131;
24                    211 221 231;;
25                    112 122 132;
26                    212 222 232;;
27                    113 123 133;
28                    213 223 233;;
29                    114 124 134;
30                    214 224 234
31                    ]
32
33
34  println( "" a[0,0,0] " " a[0,1,0] " " a[0,2,0])
35  println( "" a[1,0,0] " " a[1,1,0] " " a[1,2,0])
36
37  println( "" a[0,0,1] " " a[0,1,1] " " a[0,2,1])
38  println( "" a[1,0,1] " " a[1,1,1] " " a[1,2,1])
39
40  println( "" a[0,0,2] " " a[0,1,2] " " a[0,2,2])
41  println( "" a[1,0,2] " " a[1,1,2] " " a[1,2,2])
42
43  println( "" a[0,0,3] " " a[0,1,3] " " a[0,2,3])
44  println( "" a[1,0,3] " " a[1,1,3] " " a[1,2,3])
45
46end
47
48end
Note: See TracBrowser for help on using the browser.