(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
debug/
ctf/
ctf-bitfields-1.c
       1  /* CTF generation for bitfields.
       2     
       3     In this testcase, two slices are expected - one for enum and the other for
       4     int.  CTF slices are unnamed records.  */
       5     
       6  /* { dg-do compile )  */
       7  /* { dg-options "-O0 -gctf -dA" } */
       8  
       9  /* { dg-final { scan-assembler-times "\[\t \]0x2\[\t \]+\[^\n\]*cts_bits" 1 } } */
      10  /* { dg-final { scan-assembler-times "\[\t \]0x3\[\t \]+\[^\n\]*cts_bits" 1 } } */
      11  /* { dg-final { scan-assembler-times "\[\t \]0\[\t \]+\[^\n\]*ctt_name" 2 } } */
      12  
      13  enum color
      14  {
      15    RED,
      16    GREEN,
      17    BLUE,
      18    YELLOW,
      19    ORANGE,
      20    BLACK
      21  };
      22  
      23  struct quickcolor
      24  {
      25    enum color col:3;
      26    int brushid:2;
      27    int strokes;
      28  };
      29  
      30  struct quickcolor qc;