(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
ipa/
ipa-icf-29.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O2 -fdump-ipa-icf -fno-inline"  } */
       3  
       4  struct str
       5  {
       6    unsigned a:1, b:1;
       7  };
       8  
       9  static struct str test;
      10  
      11  unsigned foo(struct str *s)
      12  {
      13    return s->a;
      14  }
      15  
      16  unsigned bar(struct str *s)
      17  {
      18    return s->b;
      19  }
      20  
      21  int main()
      22  {
      23    test.a = 0;
      24    test.b = 1;
      25  
      26    return foo (&test) != bar (&test);
      27  }
      28  
      29  /* { dg-final { scan-ipa-dump "Equal symbols: 0" "icf"  } } */