Commit a1660bad by Michael Meissner Committed by Michael Meissner

Add new test

From-SVN: r24886
parent d5a06ad9
1999-01-27 Michael Meissner <meissner@cygnus.com>
* execute/990127-1.c: New test.
1998-12-14 Nick Clifton <nickc@cygnus.com> 1998-12-14 Nick Clifton <nickc@cygnus.com>
* execute/920501-4.c (main): Fix typo: replace | with ||. * execute/920501-4.c (main): Fix typo: replace | with ||.
......
main()
{
int a,b,c;
int *pa, *pb, *pc;
int **ppa, **ppb, **ppc;
int i,j,k,x,y,z;
a = 10;
b = 20;
c = 30;
pa = &a; pb = &b; pc = &c;
ppa = &pa; ppb = &pb; ppc = &pc;
x = 0; y = 0; z = 0;
for(i=0;i<10;i++){
if( pa == &a ) pa = &b;
else pa = &a;
while( (*pa)-- ){
x++;
if( (*pa) < 3 ) break;
else pa = &b;
}
x++;
pa = &b;
}
if ((*pa) != -5 || (*pb) != -5 || x != 43)
abort ();
exit (0);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment