summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/guality/pr41616-1.c
blob: b033da795ac8b1c92f44d71cf3610cfea784777e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do run } */
/* { dg-options "-g -fgnu89-inline" } */

#include "guality.h"

inline int f(int *a)
{
  return *a;
}

int
main(int argc, char *argv[])
{
  int b = -1;
  GUALCHKVAL (b);
  if (argc > 0)
    b = -f(&b);
  GUALCHKVAL (b);
  return b;
}