annotate test/tmp11.c @ 459:9fc266d4010f

*** empty log message ***
author kono
date Thu, 02 Dec 2004 02:50:45 +0900
parents 0c256ea2a97e
children 32737bad7489
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) {
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 172
diff changeset
8 printf("#0007:s %s\n",n);
46
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) {
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 172
diff changeset
14 printf("#0013: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);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 172
diff changeset
32 printf("#0031:return %d\n",d);
46
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 }