URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [990127-1.c] - Rev 297
Go to most recent revision | Compare with Previous | Blame | View Log
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); }
Go to most recent revision | Compare with Previous | Blame | View Log