1  /* Test compilation of stubs with various expressions involving const
       2     qualifier.
       3     
       4     In this testcase, a single CTF record for const int is expected. A total of
       5     two const qualifier CTF records are expected (const int and const struct
       6     s1).  */
       7  
       8  /* { dg-do compile )  */
       9  /* { dg-options "-O0 -gctf -dA" } */
      10  
      11  /* { dg-final { scan-assembler-times "ascii \"int.0\"\[\t \]+\[^\n\]*ctf_string" 1 } } */
      12  /* { dg-final { scan-assembler-times "\[\t \]0x32000000\[\t \]+\[^\n\]*ctt_info" 2 } } */
      13  
      14  struct mystruct
      15  {
      16    struct
      17      {
      18        int a; 
      19        const int b;
      20      } s1;
      21    char * name;
      22  } my_a;
      23  
      24  struct s1
      25  {
      26    int i;
      27    const int ci;
      28  } s;
      29  
      30  const struct s1 cs;