aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/analyzer/pr95152-4.c
blob: f2a72cad01c0c38d6cd25983cf6490a32858e604 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-additional-options "-Wno-pointer-to-int-cast" } */
extern void my_func (int);
typedef struct {
  int var;
} info_t;
extern void *_data_offs;
void test()
{
  info_t *info = ((void *)((void *)1) + ((unsigned int)&_data_offs));
  my_func(info->var == 0);
}