1  /* Test compilation of stubs with various expressions involving const and
       2     volatile qualifiers.
       3     
       4     In this testcase, it is expected to have const and volatile CTF
       5     records.  */
       6  
       7  /* { dg-do compile )  */
       8  /* { dg-options "-O0 -gctf -dA" } */
       9  
      10  /* { dg-final { scan-assembler-times "ascii \"unsigned char.0\"\[\t \]+\[^\n\]*ctf_string" 1 } } */
      11  /* { dg-final { scan-assembler-times "\[\t \]0x2e000000\[\t \]+\[^\n\]*ctt_info" 5 } } */
      12  /* { dg-final { scan-assembler-times "\[\t \]0x32000000\[\t \]+\[^\n\]*ctt_info" 3 } } */
      13  /* Two arrays.  */
      14  /* { dg-final { scan-assembler-times "\[\t \]0x12000000\[\t \]+\[^\n\]*ctt_info" 2 } } */
      15  
      16  
      17  const volatile unsigned char  vicar = 11;
      18  
      19  const volatile unsigned char * vicarage = &vicar;
      20  
      21  volatile float vilify[2];
      22  
      23  const volatile char victor = 'Y';
      24  
      25  const volatile char vindictive[2];