aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/pr69129.c
blob: 186582f50d8101ec6e03513d0a35229b6565fd29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
_Noreturn void fn1 (int) __attribute__((__visibility__("hidden")));

void
fn2 (void *p1)
{
  int a[7];
  float *b;
  int c, n;

  if (c != p1) /* { dg-warning "comparison between pointer and integer" } */
    fn1 (1);

  n = 0;
  for (; c; n++)
    {
      int d;
      if (a[n] != d)
	fn1(n);
    }

  b = p1;

  while (1)
    {
      *b = 3.40282347e38f;
      if (a[0])
	return;
    }
}