1  /* Test BTF generation of struct type.
       2  
       3     Two BTF_KIND_STRUCT records are expected.
       4     - struct foo with 3 members
       5     - struct data with 2 members  */
       6  
       7  /* { dg-do compile } */
       8  /* { dg-options "-O0 -gbtf -dA" } */
       9  
      10  /* { dg-final { scan-assembler-times "\[\t \]0x4000003\[\t \]+\[^\n\]*btt_info" 1 } } */
      11  /* { dg-final { scan-assembler-times "\[\t \]0x4000002\[\t \]+\[^\n\]*btt_info" 1 } } */
      12  /* { dg-final { scan-assembler-times "btm_name" 5 } } */
      13  
      14  struct foo
      15  {
      16    int after;
      17    int before;
      18    struct {
      19      unsigned short n_valid;
      20      int set[10];
      21    } data;
      22  } my_foo;