aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/debug/ctf/ctf-cvr-quals-4.c
blob: c1633ee935d2b58d1e6a5db179a8370e83b5d9a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* Test compilation of stubs with various qualifiers - const, restrict and
   volatile.

   CTF records for CVR qualifiers are no-name records.  In this testcase, there
   is 1 const qualifier. 1 more no-name CTF record corresponds to the CTF
   pointer record.  */

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

/* { dg-final { scan-assembler-times "\[\t \]0\[\t \]+\[^\n\]*ctt_name" 2 } } */
/* { dg-final { scan-assembler-times "\[\t \]0xe000000\[\t \]+\[^\n\]*ctt_info" 1 } } */
/* { dg-final { scan-assembler-times "\[\t \]0x32000000\[\t \]+\[^\n\]*ctt_info" 1 } } */

typedef const struct howto_struct howto_type;

typedef struct entry
{
  int addend;
  howto_type *howto;
} how_ent;

how_ent hent;