(root)/
gcc-13.2.0/
gcc/
testsuite/
c-c++-common/
pr108605.c
       1  /* PR ipa/108605 */
       2  /* { dg-do compile { target { lp64 || llp64 } } } */
       3  /* { dg-options "-O2" } */
       4  
       5  struct S {
       6    char a, b, c;
       7    int d[__INT_MAX__], e;
       8  };
       9  
      10  void
      11  foo (struct S *s)
      12  {
      13    if (s->b && s->c != 0)
      14      __builtin_abort ();
      15  }
      16  
      17  void
      18  bar (void)
      19  {
      20    struct S s[2];
      21    s[0].a = 0;
      22    s[0].e = 0;
      23    foo (s);
      24  }