summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr30045.c
blob: 6dd22a1df7ab2a715291f92dbb9f56dc497b706c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-O2 -fno-inline" }  */
int f(int *a)
{
  int  __attribute__((nonnull(1))) g(int *b)
  {
    int **c = &a;
    if (b)
      return *a + **c;
    return *b;
  }
  if (a)
    return g(a);
  return 1;
}