gcc/testsuite/gcc.target/mips/pr69129.c
raw| 1 | _Noreturn void fn1 (int) __attribute__((__visibility__("hidden"))); |
| 2 | |
| 3 | void |
| 4 | fn2 (void *p1) |
| 5 | { |
| 6 | int a[7]; |
| 7 | float *b; |
| 8 | int c, n; |
| 9 | |
| 10 | if (c != p1) /* { dg-warning "comparison between pointer and integer" } */ |
| 11 | fn1 (1); |
| 12 | |
| 13 | n = 0; |
| 14 | for (; c; n++) |
| 15 | { |
| 16 | int d; |
| 17 | if (a[n] != d) |
| 18 | fn1(n); |
| 19 | } |
| 20 | |
| 21 | b = p1; |
| 22 | |
| 23 | while (1) |
| 24 | { |
| 25 | *b = 3.40282347e38f; |
| 26 | if (a[0]) |
| 27 | return; |
| 28 | } |
| 29 | } |