(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
arc/
bitfield.c
       1  /* { dg-do run } */
       2  /* { dg-options "-O2" } */
       3  
       4  #include <stdlib.h>
       5  
       6  struct ubifs_budget_req {
       7    unsigned int fast:7;
       8    unsigned int new_ino_d:13;
       9  };
      10  
      11  int printf(const char *format, ...);
      12  
      13  void __attribute__ ((noinline))
      14  fff(struct ubifs_budget_req *req)
      15  {
      16    if (req->new_ino_d & 7)
      17      abort ();
      18  }
      19  
      20  int main (void)
      21  {
      22    struct ubifs_budget_req req = {
      23      .fast = 8,
      24      .new_ino_d = 0,
      25    };
      26    fff(&req);
      27    return 0;
      28  }