annotate test/tmp11.c @ 172:096559f07a70

some check
author kono
date Tue, 25 Nov 2003 11:47:41 +0900
parents b1c8ac8c308d
children 0c256ea2a97e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
46
b1c8ac8c308d fix cascading struct retrun. Now it should be compatible with gcc
kono
parents:
diff changeset
1 typedef struct nametable {
b1c8ac8c308d fix cascading struct retrun. Now it should be compatible with gcc
kono
parents:
diff changeset
2 char *nm;
b1c8ac8c308d fix cascading struct retrun. Now it should be compatible with gcc
kono
parents:
diff changeset
3 int sc,ty,dsp; } NMTBL;
b1c8ac8c308d fix cascading struct retrun. Now it should be compatible with gcc
kono
parents:
diff changeset
4 NMTBL *a;
b1c8ac8c308d fix cascading struct retrun. Now it should be compatible with gcc
kono
parents:
diff changeset
5
b1c8ac8c308d fix cascading struct retrun. Now it should be compatible with gcc
kono
parents:
diff changeset
6 NMTBL *
b1c8ac8c308d fix cascading struct retrun. Now it should be compatible with gcc
kono
parents:
diff changeset
7 test2(char *n) {
b1c8ac8c308d fix cascading struct retrun. Now it should be compatible with gcc
kono
parents:
diff changeset
8 printf("s %s\n",n);
b1c8ac8c308d fix cascading struct retrun. Now it should be compatible with gcc
kono
parents:
diff changeset
9 return a;
b1c8ac8c308d fix cascading struct retrun. Now it should be compatible with gcc
kono
parents:
diff changeset
10 }
b1c8ac8c308d fix cascading struct retrun. Now it should be compatible with gcc
kono
parents:
diff changeset
11
b1c8ac8c308d fix cascading struct retrun. Now it should be compatible with gcc
kono
parents:
diff changeset
12 int
b1c8ac8c308d fix cascading struct retrun. Now it should be compatible with gcc
kono
parents:
diff changeset
13 test0(int a,int b,int c) {
b1c8ac8c308d fix cascading struct retrun. Now it should be compatible with gcc
kono
parents:
diff changeset
14 printf("a %d b %d c %d\n",a,b,c);
172
096559f07a70 some check
kono
parents: 46
diff changeset
15 return 0;
46
b1c8ac8c308d fix cascading struct retrun. Now it should be compatible with gcc
kono
parents:
diff changeset
16 }
b1c8ac8c308d fix cascading struct retrun. Now it should be compatible with gcc
kono
parents:
diff changeset
17
b1c8ac8c308d fix cascading struct retrun. Now it should be compatible with gcc
kono
parents:
diff changeset
18 int
b1c8ac8c308d fix cascading struct retrun. Now it should be compatible with gcc
kono
parents:
diff changeset
19 test1(a,b,c)
b1c8ac8c308d fix cascading struct retrun. Now it should be compatible with gcc
kono
parents:
diff changeset
20 int a,b;int c;
b1c8ac8c308d fix cascading struct retrun. Now it should be compatible with gcc
kono
parents:
diff changeset
21 {
b1c8ac8c308d fix cascading struct retrun. Now it should be compatible with gcc
kono
parents:
diff changeset
22 return test0(a,b,c);
b1c8ac8c308d fix cascading struct retrun. Now it should be compatible with gcc
kono
parents:
diff changeset
23 }
b1c8ac8c308d fix cascading struct retrun. Now it should be compatible with gcc
kono
parents:
diff changeset
24
b1c8ac8c308d fix cascading struct retrun. Now it should be compatible with gcc
kono
parents:
diff changeset
25 int
b1c8ac8c308d fix cascading struct retrun. Now it should be compatible with gcc
kono
parents:
diff changeset
26 main()
b1c8ac8c308d fix cascading struct retrun. Now it should be compatible with gcc
kono
parents:
diff changeset
27 {
b1c8ac8c308d fix cascading struct retrun. Now it should be compatible with gcc
kono
parents:
diff changeset
28 int d;
b1c8ac8c308d fix cascading struct retrun. Now it should be compatible with gcc
kono
parents:
diff changeset
29 NMTBL *b;
b1c8ac8c308d fix cascading struct retrun. Now it should be compatible with gcc
kono
parents:
diff changeset
30 b = test2("test");
b1c8ac8c308d fix cascading struct retrun. Now it should be compatible with gcc
kono
parents:
diff changeset
31 d = test1(1,2,3);
b1c8ac8c308d fix cascading struct retrun. Now it should be compatible with gcc
kono
parents:
diff changeset
32 printf("return %d\n",d);
b1c8ac8c308d fix cascading struct retrun. Now it should be compatible with gcc
kono
parents:
diff changeset
33 return d;
b1c8ac8c308d fix cascading struct retrun. Now it should be compatible with gcc
kono
parents:
diff changeset
34 }