changeset 639:f3af9f3332f5

*** empty log message ***
author kono
date Tue, 31 Oct 2006 22:40:37 +0900
parents 35014112c01d
children 04211a2cf227
files test/multi.c
diffstat 1 files changed, 39 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/multi.c	Tue Oct 31 22:40:37 2006 +0900
@@ -0,0 +1,39 @@
+
+int printf(const char *,...);
+
+#define LEN0 10
+#define LEN1 10
+
+typedef int ARRAY[LEN0][LEN1];
+
+int a[LEN0][LEN1];
+
+int
+f(ARRAY a)
+{
+    int i,j;
+
+    j = a[1][1];
+    for(i=0;i<LEN0;i++) 
+	for(j=0;j<LEN1;j++) 
+	    printf("f %d %d = %d\n",i,j,a[i][j]);
+
+}
+
+int
+main()
+{
+    int i,j;
+    j = a[1][1];
+
+    for(i=0;i<LEN0;i++) 
+	for(j=0;j<LEN1;j++) 
+	    a[i][j] = i*100 + j;
+
+    for(i=0;i<LEN0;i++) 
+	for(j=0;j<LEN1;j++) 
+	    printf("m %d %d = %d\n",i,j,a[i][j]);
+
+    f(a);
+}
+