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

#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;
}