(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
ipa/
pr109318.c
       1  /* { dg-do run } */
       2  /* { dg-options "-O2 -fno-early-inlining" } */
       3  
       4  #pragma pack(1)
       5  struct S {
       6    signed : 31;
       7    unsigned f4 : 20;
       8  };
       9  
      10  static struct S global;
      11  
      12  static struct S func_16(struct S *ptr) { return *ptr; }
      13  
      14  int
      15  main()
      16  {
      17    struct S *local = &global;
      18    *local = func_16(local);
      19    return 0;
      20  }