aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/debug/ctf/ctf-pointers-2.c
blob: e36e5ec741bcf4c81be005d2edd9a7117722f6cc (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
/* CTF generation for pointer types.

   In this testcase, de-duplication of pointer types is exercised.  The
   compostition of structs in this testcase is such that when adding CTF for
   pointer type (link), the pointed-to-type type already adds the pointer to
   struct link.
   
   In this testcase, one CTF pointer type record is expected.  */

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

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

struct link;

typedef struct items {
    struct link * link; 
    int str;
} itemslist;

itemslist il;

struct link { struct link * next; };