aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/debug/ctf/ctf-struct-array-2.c
blob: 37094b5d4202006db16c9dfb5e5caaa30439d0c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* CTF generation for struct type in presence of DWARF2.

   In case of DWARF2, the data member location is an expression containing
   the location.  CTF generation feeds off DWARF dies; this testcase tests
   that the location expr is handled.  */

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

/* { dg-final { scan-assembler-times "0x12000000\[\t \]+\[^\n\]*ctt_info" 1 } } */
/* { dg-final { scan-assembler-times "\[\t \]0x4\[\t \]+\[^\n\]*cta_nelems" 1 } } */
/* { dg-final { scan-assembler-times "\[\t \]0\[\t \]+\[^\n\]*ctm_offset" 1 } } */
/* { dg-final { scan-assembler-times "\[\t \]0x20\[\t \]+\[^\n\]*ctm_offset" 1 } } */

static struct ranges {int from, to;} lim_regs[] = {{ 16, 7}, { 16, 6}, { 20, 7},{ 20, 6}};