summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/Wint-conversion.c
blob: 1b7a03e431121ab9b4710ef5e7684f35821807c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* { dg-do compile } */
/* { dg-options "-Wno-int-conversion" } */

int fn1 (int *), *fn2 (int);

int
fn1 (int *p)
{
  int i = p;
  i = p;
  fn2 (p);
  return p;
}

int *
fn2 (int i)
{
  int *p = i;
  p = i;
  fn1 (i);
  return i;
}