aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr66863.c
blob: 22cb397fc5d8ecdffef013719a38f2434c812d34 (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
/* { dg-do run } */

int a, b;

int
fn1 (int p1)
{
  if (p1 < -2147483647) 
    return 0;
  else 
    return 1;
}

int
fn2 (int p1, short p2)
{
  return p2 ? p1 % p2 : 0; 
}

int
main ()
{
  b = fn2 (fn1 (a), a);
  return 0;
}