annotate test/tmp.c @ 467:32737bad7489

fix list/tag interference
author kono
date Sat, 30 Jul 2005 16:01:45 +0900
parents 0c256ea2a97e
children a379da780856
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
467
32737bad7489 fix list/tag interference
kono
parents: 427
diff changeset
1 int printf(const char *format, ...);
32737bad7489 fix list/tag interference
kono
parents: 427
diff changeset
2
53
64a4e3789fd2 parallel assign works.
kono
parents: 0
diff changeset
3
64a4e3789fd2 parallel assign works.
kono
parents: 0
diff changeset
4 int
64a4e3789fd2 parallel assign works.
kono
parents: 0
diff changeset
5 main1(int ac,char *av[],int (*f)(),int g())
64a4e3789fd2 parallel assign works.
kono
parents: 0
diff changeset
6 {
64a4e3789fd2 parallel assign works.
kono
parents: 0
diff changeset
7 return (*f)(ac)+g(ac);
64a4e3789fd2 parallel assign works.
kono
parents: 0
diff changeset
8 }
64a4e3789fd2 parallel assign works.
kono
parents: 0
diff changeset
9
64a4e3789fd2 parallel assign works.
kono
parents: 0
diff changeset
10 int
64a4e3789fd2 parallel assign works.
kono
parents: 0
diff changeset
11 g(int k) {
64a4e3789fd2 parallel assign works.
kono
parents: 0
diff changeset
12 return k+1;
64a4e3789fd2 parallel assign works.
kono
parents: 0
diff changeset
13 }
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
14
d35df41eac69 Initial revision
kono
parents:
diff changeset
15 main0(ac,av)
d35df41eac69 Initial revision
kono
parents:
diff changeset
16 {
d35df41eac69 Initial revision
kono
parents:
diff changeset
17 return ac;
d35df41eac69 Initial revision
kono
parents:
diff changeset
18 }
d35df41eac69 Initial revision
kono
parents:
diff changeset
19
d35df41eac69 Initial revision
kono
parents:
diff changeset
20 main(ac,av)
d35df41eac69 Initial revision
kono
parents:
diff changeset
21 int ac;
d35df41eac69 Initial revision
kono
parents:
diff changeset
22 char *av[];
d35df41eac69 Initial revision
kono
parents:
diff changeset
23 {
d35df41eac69 Initial revision
kono
parents:
diff changeset
24 register int i;
d35df41eac69 Initial revision
kono
parents:
diff changeset
25 register char *p;
d35df41eac69 Initial revision
kono
parents:
diff changeset
26
d35df41eac69 Initial revision
kono
parents:
diff changeset
27 p = av[1];
d35df41eac69 Initial revision
kono
parents:
diff changeset
28 if (!p) return;
d35df41eac69 Initial revision
kono
parents:
diff changeset
29 i = p[1];
d35df41eac69 Initial revision
kono
parents:
diff changeset
30 p = p+i;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 172
diff changeset
31 printf("#0028:%d %s\n",i,p-i);
0c256ea2a97e Bitfield left value for ia32
kono
parents: 172
diff changeset
32 printf("#0029:%d\n",main1(ac,av,g,g));
172
096559f07a70 some check
kono
parents: 53
diff changeset
33 return 0;
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
34 }