aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/debug/ctf/ctf-cvr-quals-3.c
blob: 97317a47b8f52c40b6103abaf88b62a27d6f6ab6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* Test compilation of stubs with various expressions involving const and
   volatile qualifiers.
   
   In this testcase, it is expected to have const and volatile CTF
   records.  */

/* { dg-do compile )  */
/* { dg-options "-O0 -gctf -dA" } */

/* { dg-final { scan-assembler-times "ascii \"unsigned char.0\"\[\t \]+\[^\n\]*ctf_string" 1 } } */
/* { dg-final { scan-assembler-times "\[\t \]0x2e000000\[\t \]+\[^\n\]*ctt_info" 5 } } */
/* { dg-final { scan-assembler-times "\[\t \]0x32000000\[\t \]+\[^\n\]*ctt_info" 3 } } */
/* Two arrays.  */
/* { dg-final { scan-assembler-times "\[\t \]0x12000000\[\t \]+\[^\n\]*ctt_info" 2 } } */


const volatile unsigned char  vicar = 11;

const volatile unsigned char * vicarage = &vicar;

volatile float vilify[2];

const volatile char victor = 'Y';

const volatile char vindictive[2];