1  /* Test BTF generation for pointer types.
       2  
       3     Two pointer types are expected:
       4      - int *
       5      - struct st *
       6     */
       7  
       8  /* { dg-do compile } */
       9  /* { dg-options "-O0 -gbtf -dA" } */
      10  
      11  /* { dg-final { scan-assembler-times "\[\t \]0x2000000\[\t \]+\[^\n\]*btt_info" 2 } } */
      12  /* { dg-final { scan-assembler-times "ascii \"int.0\"\[\t \]+\[^\n\]*btf_string" 1 } } */
      13  /* { dg-final { scan-assembler-times "ascii \"st.0\"\[\t \]+\[^\n\]*btf_string" 1 } } */
      14  
      15  int foo = 10;
      16  int *pfoo = &foo;
      17  
      18  struct st
      19  {
      20    int a;
      21    int *pb;
      22    struct st * next;
      23  };
      24  
      25  struct st * bar;