gcc/testsuite/gcc.c-torture/compile/930325-1.c
raw| 1 | /* { dg-additional-options "-std=gnu89" } */ |
| 2 | |
| 3 | typedef unsigned uint; |
| 4 | |
| 5 | inline |
| 6 | g (uint *s, uint *d, uint c) |
| 7 | { |
| 8 | while (c != 0) |
| 9 | { |
| 10 | *--d = *--s; |
| 11 | c--; |
| 12 | } |
| 13 | } |
| 14 | |
| 15 | f (uint *p1, uint c, uint *p2) |
| 16 | { |
| 17 | while (c > 0 && *p1 == 0) |
| 18 | { |
| 19 | p1++; |
| 20 | c--; |
| 21 | } |
| 22 | if (c == 0) |
| 23 | return 1; |
| 24 | g (p2, p1, c); |
| 25 | } |