view gcc/testsuite/gcc.dg/torture/pr54409.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* { dg-do compile } */

int b;

struct S
{
  char *p;
  struct {
  } s;
  int a;
};

static _Bool
fn2 (int *p1)
{
  if (b)
    {
      struct S *c = (struct S *) &p1;
      return c->a;
    }
}

_Bool
fn3 (struct S *p1)
{
  if (fn2 ((int *) &p1->s))
    return 0;
}