(root)/
gcc-13.2.0/
gcc/
testsuite/
c-c++-common/
pr88664-1.c
       1  /* PR c/88664.  */
       2  /* { dg-do compile } */
       3  /* { dg-options "-O" } */
       4  
       5  struct data
       6  {
       7    void *ptr;
       8  } __attribute__((packed));
       9  
      10  int *
      11  fun1 (struct data *p)
      12  {
      13    return (int *) p->ptr;
      14  }
      15  
      16  int *
      17  fun2 (struct data *p, int *x)
      18  {
      19    return x ? (*x = 1, (int *) p->ptr) : (int *) 0;
      20  }