921e5a0eb4
From-SVN: r14840
25 lines
258 B
C
25 lines
258 B
C
int bar = 0;
|
|
|
|
f (p)
|
|
int *p;
|
|
{
|
|
int foo = 2;
|
|
|
|
while (foo > bar)
|
|
{
|
|
foo -= bar;
|
|
*p++ = foo;
|
|
bar = 1;
|
|
}
|
|
}
|
|
|
|
main ()
|
|
{
|
|
int tab[2];
|
|
tab[0] = tab[1] = 0;
|
|
f (tab);
|
|
if (tab[0] != 2 || tab[1] != 1)
|
|
abort ();
|
|
exit (0);
|
|
}
|